Compare commits
15 Commits
Author | SHA1 | Date |
---|---|---|
|
86dfe703f8 | |
|
85e8af6e03 | |
|
c04df49a78 | |
|
56ce54cb33 | |
|
56e8423365 | |
|
60664dab9e | |
|
ad83be94bc | |
|
c50e8fb43e | |
|
f608d1e5fc | |
|
2e99c5cd31 | |
|
be7299a09d | |
|
0828f86077 | |
|
cf1341d559 | |
|
a350f16c89 | |
|
a03b918c78 |
|
@ -0,0 +1,68 @@
|
||||||
|
version: 2
|
||||||
|
name: gitlink正式环境
|
||||||
|
description: ""
|
||||||
|
global:
|
||||||
|
concurrent: 1
|
||||||
|
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: end
|
||||||
|
name: 结束
|
||||||
|
task: end
|
||||||
|
needs:
|
||||||
|
- gitlink_ssh_cmd_0
|
||||||
|
- ref: gitlink_scp_resource_0
|
||||||
|
name: scp复制文件(支持跳板机)
|
||||||
|
on-failure: ignore
|
||||||
|
task: yystopf/gitlink_scp_resource@0.0.7
|
||||||
|
input:
|
||||||
|
ssh_private_key: ((ssh.siyao))
|
||||||
|
remote_host: '"10.9.117.109"'
|
||||||
|
remote_port: '"22"'
|
||||||
|
remote_user: '"root"'
|
||||||
|
remote_file: '"/root/gitea"'
|
||||||
|
local_file: golang_build_node_0.bin_dir
|
||||||
|
gateway_host: '"123.59.135.93"'
|
||||||
|
gateway_port: '"51123"'
|
||||||
|
gateway_user: '"pdl"'
|
||||||
|
temp_file: '"/home/pdl/gitea"'
|
||||||
|
needs:
|
||||||
|
- golang_build_node_0
|
||||||
|
- ref: golang_build_node_0
|
||||||
|
name: golang_build_node
|
||||||
|
on-failure: ignore
|
||||||
|
task: yystopf/golang_build_node@0.0.2
|
||||||
|
input:
|
||||||
|
workspace: git_clone_0.git_path
|
||||||
|
out_bin_name: '"gitea"'
|
||||||
|
goos: '"linux"'
|
||||||
|
goarch: '"amd64"'
|
||||||
|
needs:
|
||||||
|
- git_clone_0
|
||||||
|
- ref: gitlink_ssh_cmd_0
|
||||||
|
name: ssh执行命令(支持跳板机)
|
||||||
|
task: yystopf/gitlink_ssh_cmd@0.0.6
|
||||||
|
input:
|
||||||
|
ssh_private_key: ((ssh.siyao))
|
||||||
|
remote_host: '"10.9.117.109"'
|
||||||
|
remote_port: '"22"'
|
||||||
|
remote_user: '"root"'
|
||||||
|
gateway_host: '"123.59.135.93"'
|
||||||
|
gateway_port: '"51123"'
|
||||||
|
gateway_user: '"pdl"'
|
||||||
|
ssh_cmd: '"sh update.sh"'
|
||||||
|
needs:
|
||||||
|
- gitlink_scp_resource_0
|
||||||
|
|
|
@ -0,0 +1,40 @@
|
||||||
|
version: 2
|
||||||
|
name: test
|
||||||
|
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: '""'
|
||||||
|
ref: '"refs/heads/master"'
|
||||||
|
commit_id: '""'
|
||||||
|
depth: 1
|
||||||
|
needs:
|
||||||
|
- start
|
||||||
|
- ref: golong_build_122_0
|
||||||
|
name: golang build 1.22
|
||||||
|
task: dagege/golong_build_122@1.0.4
|
||||||
|
input:
|
||||||
|
workspace: git_clone_0.git_path
|
||||||
|
out_bin_name: catpaw
|
||||||
|
GOOS: '"linux"'
|
||||||
|
GOARCH: '"amd64"'
|
||||||
|
needs:
|
||||||
|
- git_clone_0
|
||||||
|
- ref: end
|
||||||
|
name: 结束
|
||||||
|
task: end
|
||||||
|
needs:
|
||||||
|
- golong_build_122_0
|
||||||
|
|
Loading…
Reference in New Issue