forked from Gitlink/gitea_hat
feat: .devops/gitlink正式环境.yml
This commit is contained in:
parent
a350f16c89
commit
cf1341d559
|
|
@ -0,0 +1,56 @@
|
|||
version: 2
|
||||
name: gitlink正式环境
|
||||
description: ""
|
||||
global:
|
||||
concurrent: 1
|
||||
trigger:
|
||||
webhook: gitlink@1.0.0
|
||||
event:
|
||||
- ref: push
|
||||
ruleset:
|
||||
- param-ref: branch
|
||||
operator: EQ
|
||||
value: '"master"'
|
||||
ruleset-operator: AND
|
||||
workflow:
|
||||
- ref: start
|
||||
name: 开始
|
||||
task: start
|
||||
- ref: git_clone_0
|
||||
name: git clone
|
||||
on-failure: ignore
|
||||
task: git_clone@1.2.6
|
||||
input:
|
||||
remote_url: '"https://gitlink.org.cn/Gitlink/gitea_hat.git"'
|
||||
ref: '"refs/heads/master"'
|
||||
commit_id: '""'
|
||||
depth: 1
|
||||
needs:
|
||||
- start
|
||||
- ref: golang_build_18_0
|
||||
name: golang构建
|
||||
on-failure: ignore
|
||||
task: mafeibai/golang_build_18@0.0.5
|
||||
input:
|
||||
workspace: git_clone_0.git_path
|
||||
bin_name: '"gitea"'
|
||||
needs:
|
||||
- git_clone_0
|
||||
- ref: scp_resource_0
|
||||
name: scp替换文件
|
||||
task: scp_resource@1.4.1
|
||||
input:
|
||||
ssh_ip: '""'
|
||||
ssh_port: '"22"'
|
||||
ssh_user: '"root"'
|
||||
remote_file: '""'
|
||||
local_file: '""'
|
||||
file_content: '""'
|
||||
needs:
|
||||
- golang_build_18_0
|
||||
- ref: end
|
||||
name: 结束
|
||||
task: end
|
||||
needs:
|
||||
- scp_resource_0
|
||||
|
||||
Loading…
Reference in New Issue