feat: .devops/testgitea2.yml

This commit is contained in:
yystopf 2023-03-17 09:54:35 +08:00 committed by jianmu
parent 3e0ac8ad78
commit a1ebd11fc8
1 changed files with 34 additions and 0 deletions

34
.devops/testgitea2.yml Normal file
View File

@ -0,0 +1,34 @@
version: 2
name: testgitea2
description: ""
global:
concurrent: 1
trigger:
webhook: gitlink@1.0.0
event:
- ref: push
ruleset:
- param-ref: branch
operator: EQ
value: '"develop"'
ruleset-operator: AND
workflow:
- ref: start
name: 开始
task: start
- ref: ssh_cmd_0
name: ssh执行命令
task: ssh_cmd@1.1.1
input:
ssh_ip: '""'
ssh_port: '"22"'
ssh_user: '"root"'
ssh_cmd: '""'
needs:
- start
- ref: end
name: 结束
task: end
needs:
- ssh_cmd_0