refactor: .devops/work.yml

This commit is contained in:
wangmingqiang 2024-05-29 01:36:52 +00:00 committed by jianmu
parent c38b942b66
commit 0a452c98c4
1 changed files with 4 additions and 30 deletions

View File

@ -4,40 +4,11 @@ description: ""
global:
concurrent: 1
workflow:
- ref: start
name: 开始
task: start
- ref: end
name: 结束
task: end
needs:
- ssh_cmd_0
- ref: git_clone_0
name: git clone
task: git_clone@1.2.9
input:
remote_url: '"https://gitlink.org.cn/wangmingqiang/gitlink_help_center.git"'
ref: '"refs/heads/master"'
commit_id: '""'
depth: 1
needs:
- start
- ref: docker_image_build_0
name: docker镜像构建
task: docker_image_build@1.6.0
input:
docker_username: ((Docker.name))
docker_password: ((Docker.passward))
image_name: '"registry.cn-guangzhou.aliyuncs.com/nudt_devops/gitlink_help_center"'
image_tag: '"latest"'
registry_address: '"registry.cn-guangzhou.aliyuncs.com"'
docker_file: '"Dockerfile"'
docker_build_path: '"."'
workspace: git_clone_0.git_path
image_push: true
build_args: '""'
needs:
- git_clone_0
- ref: ssh_cmd_0
name: ssh执行命令
task: ssh_cmd@1.1.1
@ -51,5 +22,8 @@ workflow:
&& docker run -d -p 3000:3000 --name ghc_group7
registry.cn-guangzhou.aliyuncs.com/nudt_devops/gitlink_help_center_group7:latest"'
needs:
- docker_image_build_0
- start
- ref: start
name: 开始
task: start