feat: .devops/未命名项目.yml

This commit is contained in:
lifedreamer 2025-06-01 22:09:46 +08:00 committed by jianmu
parent 9708454c7f
commit 8e70d9aa3c
1 changed files with 58 additions and 0 deletions

View File

@ -0,0 +1,58 @@
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: end
name: 结束
task: end
needs:
- ssh_cmd_0
- ref: docker_image_build_0
name: docker镜像构建
task: docker_image_build@1.6.0
input:
docker_username: ((qianqijun.docker_user))
docker_password: ((qianqijun.docker_psw))
image_name: '"crpi-tmvkwcuipqu5d1w2.cn-hongkong.personal.cr.aliyuncs.com/group_10/gitlink_help"'
image_tag: '"latest"'
registry_address: '"crpi-tmvkwcuipqu5d1w2.cn-hongkong.personal.cr.aliyuncs.com"'
docker_file: '"Dockerfile"'
docker_build_path: '"."'
workspace: '"."'
image_push: true
build_args: '""'
needs:
- git_clone_0
- ref: git_clone_0
name: git clone
task: git_clone@1.2.9
input:
username: ((qianqijun.user))
password: ((qianqijun.psw))
remote_url: '"https://gitlink.org.cn/likecheng22/gitlink_help_center.git"'
ref: '"refs/heads/master"'
commit_id: '""'
depth: 1
needs:
- start
- ref: ssh_cmd_0
name: ssh执行命令
task: ssh_cmd@1.1.1
input:
ssh_ip: '"116.62.22.98"'
ssh_port: '"22"'
ssh_user: '"root"'
ssh_cmd: '""'
needs:
- docker_image_build_0