feat: .devops/build.yml
Former-commit-id: 7ce107b663c662b2893e66497f64f007f0f7c995
This commit is contained in:
parent
6aa89132a8
commit
11e64d8fb5
|
@ -0,0 +1,52 @@
|
||||||
|
version: 2
|
||||||
|
name: build
|
||||||
|
description: ""
|
||||||
|
global:
|
||||||
|
concurrent: 1
|
||||||
|
workflow:
|
||||||
|
- ref: start
|
||||||
|
name: 开始
|
||||||
|
task: start
|
||||||
|
- ref: git_clone_0
|
||||||
|
name: git clone
|
||||||
|
task: git_clone@1.2.9
|
||||||
|
input:
|
||||||
|
remote_url: '"https://gitlink.org.cn/JointCloud/pcm-coordinator.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: ((dev.docker_user))
|
||||||
|
docker_password: ((dev.docker_password))
|
||||||
|
image_name: '"registry.cn-hangzhou.aliyuncs.com/jcce/pcm-core"'
|
||||||
|
image_tag: '"latest"'
|
||||||
|
registry_address: '"registry.cn-hangzhou.aliyuncs.com"'
|
||||||
|
docker_file: '"Dockerfile"'
|
||||||
|
docker_build_path: '"."'
|
||||||
|
workspace: '"."'
|
||||||
|
image_push: true
|
||||||
|
build_args: '""'
|
||||||
|
needs:
|
||||||
|
- git_clone_0
|
||||||
|
- ref: ssh_cmd_0
|
||||||
|
name: ssh执行命令
|
||||||
|
task: ssh_cmd@1.1.1
|
||||||
|
input:
|
||||||
|
ssh_private_key: ((dev.gitlink_ssheky))
|
||||||
|
ssh_ip: '"47.92.39.128"'
|
||||||
|
ssh_port: '"22"'
|
||||||
|
ssh_user: '"root"'
|
||||||
|
ssh_cmd: '"kubectl rollout restart deployment -n ns-admin pcm-core-api"'
|
||||||
|
needs:
|
||||||
|
- docker_image_build_0
|
||||||
|
- ref: end
|
||||||
|
name: 结束
|
||||||
|
task: end
|
||||||
|
needs:
|
||||||
|
- ssh_cmd_0
|
||||||
|
|
Loading…
Reference in New Issue