feat: .devops/api-ci.yml

Former-commit-id: 9aaf827df336299a081d93b81ebfb350ba521581
This commit is contained in:
devad 2024-06-28 02:41:49 +00:00 committed by jianmu
parent b804be8376
commit fadeb666ff
1 changed files with 49 additions and 0 deletions

49
.devops/api-ci.yml Normal file
View File

@ -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