feat: .devops/脚本执行器.yml

This commit is contained in:
songjc 2023-11-10 09:54:05 +08:00 committed by jianmu
parent 60664dab9e
commit 56e8423365
1 changed files with 48 additions and 0 deletions

View File

@ -0,0 +1,48 @@
version: 2
name: 脚本执行器
description: ""
global:
concurrent: 1
workflow:
- ref: start
name: 开始
task: start
- ref: git_clone_0
name: git clone
task: git_clone@1.2.9
input:
remote_url: '"https://gitlink.org.cn/cloudream/cicdtest.git"'
ref: '"refs/heads/master"'
commit_id: '""'
depth: 1
needs:
- start
- 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: scp_resource_0
name: scp替换文件
task: scp_resource@1.4.3
input:
ssh_private_key: ((SSH.pcm1))
ssh_ip: '"123.60.146.162"'
ssh_port: '"22"'
ssh_user: '"pcm"'
remote_file: '"/home/pcm/test1"'
local_file: '"."'
file_content: '""'
needs:
- golang_build_node_0
- ref: end
name: 结束
task: end
needs:
- scp_resource_0