gitea_hat/.devops/未命名项目.yml

70 lines
1.7 KiB
YAML
Raw Permalink Normal View History

2023-04-08 15:00:49 +08:00
version: 2
name: 未命名项目
description: ""
global:
concurrent: 1
workflow:
- ref: start
name: 开始
task: start
- ref: end
name: 结束
task: end
needs:
2023-04-10 17:49:23 +08:00
- gitlink_ssh_cmd_0
2023-04-08 15:17:32 +08:00
- ref: git_clone_0
name: git clone
on-failure: ignore
task: git_clone@1.2.6
input:
remote_url: '"https://code.gitlink.org.cn/yystopf/gitea_hat.git"'
ref: '"refs/heads/master"'
commit_id: '""'
depth: 1
needs:
- start
2023-04-08 16:53:02 +08:00
- ref: golang_build_node_0
name: golang_build_node
on-failure: ignore
2023-04-08 16:59:25 +08:00
task: yystopf/golang_build_node@0.0.2
2023-04-08 16:53:02 +08:00
input:
workspace: git_clone_0.git_path
out_bin_name: '"gitea"'
goos: '"linux"'
goarch: '"amd64"'
needs:
- git_clone_0
2023-04-10 17:49:23 +08:00
- ref: gitlink_ssh_cmd_0
name: ssh执行命令支持跳板机
on-failure: ignore
task: yystopf/gitlink_ssh_cmd@0.0.1
input:
ssh_private_key: ((yystopf.private_key))
remote_host: '"10.9.101.74"'
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
- ref: gitlink_scp_resource_0
name: scp复制文件支持跳板机
on-failure: ignore
task: yystopf/gitlink_scp_resource@0.0.1
input:
ssh_private_key: ((yystopf.private_key))
remote_host: '"10.9.101.74"'
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
2023-04-08 15:00:49 +08:00