feat: .devops/自动上传镜像.yml

This commit is contained in:
Eazzy 2024-05-23 14:51:50 +00:00 committed by jianmu
parent 4f58fa6d92
commit c3fc3cdcc8
1 changed files with 46 additions and 0 deletions

View File

@ -0,0 +1,46 @@
version: 2
name: 自动上传镜像
description: ""
global:
concurrent: 1
trigger:
webhook: gitlink@1.0.0
event:
- ref: push
ruleset-operator: AND
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/Eazzy/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.username))
docker_password: ((docker.docker_key))
image_name: '"registry.cn-guangzhou.aliyuncs.com/eazzy_devops/gitlink_help_center_groupeazzy"'
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: end
name: 结束
task: end
needs:
- docker_image_build_0