feat: .devops/api-ci.yml
Former-commit-id: 9aaf827df336299a081d93b81ebfb350ba521581
This commit is contained in:
parent
b804be8376
commit
fadeb666ff
|
@ -0,0 +1,49 @@
|
||||||
|
version: 2
|
||||||
|
name: api-ci
|
||||||
|
description: ""
|
||||||
|
global:
|
||||||
|
concurrent: 1
|
||||||
|
cache:
|
||||||
|
- git_cache
|
||||||
|
- docker_cache
|
||||||
|
workflow:
|
||||||
|
- ref: start
|
||||||
|
name: 开始
|
||||||
|
task: start
|
||||||
|
- ref: git_clone_0
|
||||||
|
name: git clone
|
||||||
|
cache:
|
||||||
|
git_cache: /
|
||||||
|
task: git_clone@1.2.9
|
||||||
|
input:
|
||||||
|
ssh_key: ((dev.gitlink_ssheky))
|
||||||
|
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-api"'
|
||||||
|
image_tag: '"latest"'
|
||||||
|
registry_address: '"registry.cn-hangzhou.aliyuncs.com"'
|
||||||
|
docker_file: git_clone_0.git_path + '/api/Dockerfile'
|
||||||
|
docker_build_path: git_clone_0.git_path
|
||||||
|
workspace: '"."'
|
||||||
|
image_clean: true
|
||||||
|
image_push: true
|
||||||
|
build_args: '""'
|
||||||
|
no_cache: true
|
||||||
|
needs:
|
||||||
|
- git_clone_0
|
||||||
|
- ref: end
|
||||||
|
name: 结束
|
||||||
|
task: end
|
||||||
|
needs:
|
||||||
|
- docker_image_build_0
|
||||||
|
|
Loading…
Reference in New Issue