forked from Gitlink/gitlink_help_center
refactor: .devops/流水线demo.yml
This commit is contained in:
parent
4dcbde2fbd
commit
0c91de319c
|
|
@ -50,7 +50,14 @@ workflow:
|
|||
ssh_ip: '""'
|
||||
ssh_port: '"22"'
|
||||
ssh_user: '"root"'
|
||||
ssh_cmd: '""'
|
||||
ssh_cmd: >-
|
||||
docker stop ghc_group3 #停止已启动的容器
|
||||
|
||||
docker rm ghc_group3 #删除容器
|
||||
|
||||
docker pull registry.cn-guangzhou.aliyuncs.com/nudt_devops/gitlink_help_center_group3: latest #拉取(更新)容器
|
||||
|
||||
docker run -p 3000:3000 –name ghc_group3 registry.cn-guangzhou.aliyuncs.com/nudt_devops/gitlink_help_center_group3:latest #重新从最新的镜像中启动容器
|
||||
needs:
|
||||
- docker_image_build_0
|
||||
- ref: end
|
||||
|
|
|
|||
Loading…
Reference in New Issue