diff --git a/.trustie-pipeline.yml b/.trustie-pipeline.yml new file mode 100644 index 0000000..410d361 --- /dev/null +++ b/.trustie-pipeline.yml @@ -0,0 +1,34 @@ +#pipeline +kind: pipeline +type: docker +name: default +platform: + os: linux + arch: amd64 +steps: +# 构建Docker镜像并推送到仓库 +# 定义镜像Hub路径以及账号密码 +- name: Docker镜像构建 + image: plugins/docker + settings: + username: username + password: pwd + repo: repoUrl + tags: latest +- name: golang编译 + image: golang + commands: + - go build +# 根据实际情况修改主机ip、账号、密码 +# 需要将软件包与部署脚本提前上传到远程主机(见文件上传模板) + +- name: 远程主机部署 + image: appleboy/drone-ssh + settings: + host: 192.168.1.1 + username: username + password: 'pasword' + port: 22 + commands: + - chmod +x /home/deploy.sh + - ./home/deploy.sh diff --git a/README.md b/README.md index 5bd15f3..a3e7834 100644 --- a/README.md +++ b/README.md @@ -1,13 +1,14 @@ - +---- +# 本地开发部署步骤 # 本地开发部署步骤 -#### 1. 安装依赖包 +#### 1. [安装依赖包](#安装依赖包) ```bash bundle install ``` -#### 2. 配置初始化文件 +#### 2. [配置初始化文件](#配置初始化文件) 进入项目根目录执行一下命令: ```bash @@ -23,7 +24,8 @@ touch config/elasticsearch.yml rails db:create ``` -#### 4. 导入数据表结构 +#### 4. [导入数据表结构](#配置初始化文件) +导入数据表结构 ```bash bundle exec rake sync_table_structure:import_csv @@ -46,7 +48,15 @@ http://localhost:3000/projects ``` --- +## Table of Content +[1. Anchors](#Anchors) +[2. Block Elements](#BlockElements) +## 1. Anchors +See [Table of Content](#TableOfContent) above. +## 2. Block Elements + +--- # API文档 @@ -1998,7 +2008,7 @@ http://localhost:3000/api/18816895620/mirror_demo/contents/files/delete | jq "author": { "name": "18816895620", "email": "2456233122@qq.com", - "date": "2020-01-08T07:57:34Z" + "date": "2020-01-08T07:57:39Z" }, "committer": { "name": "18816895620", diff --git a/caishi.html b/caishi.html new file mode 100644 index 0000000..d33b385 --- /dev/null +++ b/caishi.html @@ -0,0 +1,4 @@ +caicai +caicai +caicai +good luck \ No newline at end of file diff --git a/caishi.html1 b/caishi.html1 new file mode 100644 index 0000000..e69de29 diff --git a/dzadsa.ttt b/dzadsa.ttt new file mode 100644 index 0000000..4fbff89 --- /dev/null +++ b/dzadsa.ttt @@ -0,0 +1 @@ +sdfsdfsf \ No newline at end of file diff --git a/new.html b/new.html new file mode 100644 index 0000000..6d56757 --- /dev/null +++ b/new.html @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/pr.html b/pr.html new file mode 100644 index 0000000..c1b62f9 --- /dev/null +++ b/pr.html @@ -0,0 +1 @@ +fjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj \ No newline at end of file diff --git a/test.rb b/test.rb new file mode 100644 index 0000000..53343da --- /dev/null +++ b/test.rb @@ -0,0 +1,7 @@ +def test + puts "test1f" + puts "fff" + + + +end diff --git a/test_devops.rb b/test_devops.rb new file mode 100644 index 0000000..4cecb53 --- /dev/null +++ b/test_devops.rb @@ -0,0 +1,3 @@ +def test_devops + puts "This is good idea." +end \ No newline at end of file diff --git a/test_webhook.rb b/test_webhook.rb new file mode 100644 index 0000000..5f63426 --- /dev/null +++ b/test_webhook.rb @@ -0,0 +1,5 @@ +def test_r + puts "fsaf" + + puts "success" +end