diff --git a/.trustie-pipeline.yml b/.trustie-pipeline.yml
index 8899462..410d361 100644
--- a/.trustie-pipeline.yml
+++ b/.trustie-pipeline.yml
@@ -1,13 +1,34 @@
-kind: pipeline
-name: default
-
-platform:
- os: linux
- arch: arm64
-
+#pipeline
+kind: pipeline
+type: docker
+name: default
+platform:
+ os: linux
+ arch: amd64
steps:
-- name: test
- image: ruby
- commands:
- - ruby -v
- - ruby -v
\ No newline at end of file
+# 构建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 17406f1..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文档
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