forked from jasder/forgeplus
Update .trustie-pipeline.yml
This commit is contained in:
parent
11a91d062f
commit
e38b4331e2
|
@ -1,11 +1,11 @@
|
||||||
#pipeline
|
#pipeline
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
name: default
|
name: default
|
||||||
platform:
|
platform:
|
||||||
os: linux
|
os: linux
|
||||||
arch: amd64
|
arch: amd64
|
||||||
steps:
|
steps:
|
||||||
# 构建Docker镜像并推送到仓库
|
# 构建Docker镜像并推送到仓库
|
||||||
# 定义镜像Hub路径以及账号密码
|
# 定义镜像Hub路径以及账号密码
|
||||||
- name: Docker镜像构建
|
- name: Docker镜像构建
|
||||||
|
@ -14,11 +14,11 @@ steps:
|
||||||
username: username
|
username: username
|
||||||
password: pwd
|
password: pwd
|
||||||
repo: repoUrl
|
repo: repoUrl
|
||||||
tags: latest
|
tags: latest
|
||||||
- name: golang编译
|
- name: golang编译
|
||||||
image: golang
|
image: golang
|
||||||
commands:
|
commands:
|
||||||
- go build
|
- go build
|
||||||
# 根据实际情况修改主机ip、账号、密码
|
# 根据实际情况修改主机ip、账号、密码
|
||||||
# 需要将软件包与部署脚本提前上传到远程主机(见文件上传模板)
|
# 需要将软件包与部署脚本提前上传到远程主机(见文件上传模板)
|
||||||
|
|
||||||
|
@ -31,4 +31,6 @@ steps:
|
||||||
port: 22
|
port: 22
|
||||||
commands:
|
commands:
|
||||||
- chmod +x /home/deploy.sh
|
- chmod +x /home/deploy.sh
|
||||||
- ./home/deploy.sh
|
- ./home/deploy.sh
|
||||||
|
|
||||||
|
fff
|
||||||
|
|
Loading…
Reference in New Issue