From a7054c39c61b8daa5a16494cd56d0eca364ac7e3 Mon Sep 17 00:00:00 2001 From: jasder <2053003901@qq.com> Date: Fri, 25 Jun 2021 12:02:22 +0800 Subject: [PATCH] Update .trustie-pipeline.yml --- .trustie-pipeline.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.trustie-pipeline.yml b/.trustie-pipeline.yml index 410d361..09eda66 100644 --- a/.trustie-pipeline.yml +++ b/.trustie-pipeline.yml @@ -1,11 +1,11 @@ -#pipeline +#pipeline kind: pipeline type: docker name: default platform: os: linux - arch: amd64 -steps: + arch: amd64 +steps: # 构建Docker镜像并推送到仓库 # 定义镜像Hub路径以及账号密码 - name: Docker镜像构建 @@ -14,11 +14,11 @@ steps: username: username password: pwd repo: repoUrl - tags: latest + tags: latest - name: golang编译 image: golang commands: - - go build + - go build # 根据实际情况修改主机ip、账号、密码 # 需要将软件包与部署脚本提前上传到远程主机(见文件上传模板) @@ -31,4 +31,5 @@ steps: port: 22 commands: - chmod +x /home/deploy.sh - - ./home/deploy.sh + - ./home/deploy.sh +sure \ No newline at end of file