From 3e2d43ab77cfbbf9d441bef8f0481b31276041e6 Mon Sep 17 00:00:00 2001 From: yystopf Date: Tue, 11 Apr 2023 09:42:44 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9=EF=BC=9Atestgitea=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E6=B5=81=E6=B0=B4=E7=BA=BF=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .devops/testgitea环境.yml | 65 +++++++++++++++++++++++++++++-------- 1 file changed, 51 insertions(+), 14 deletions(-) diff --git a/.devops/testgitea环境.yml b/.devops/testgitea环境.yml index b2001d8..20b989d 100644 --- a/.devops/testgitea环境.yml +++ b/.devops/testgitea环境.yml @@ -16,25 +16,62 @@ workflow: - ref: start name: 开始 task: start - - ref: ssh_cmd_0 - name: ssh执行命令 - task: ssh_cmd@1.1.0 + - ref: git_clone_0 + name: git clone + on-failure: ignore + task: git_clone@1.2.6 input: - ssh_private_key: ((ssh.siyao)) - ssh_ip: '"123.59.135.93"' - ssh_port: '"51123"' - ssh_user: '"pdl"' - ssh_cmd: '"ssh root@10.9.69.134 -p30122 \" - cd /root - && - sh ./update.sh - && - echo done \""' + remote_url: '"https://gitlink.org.cn/Gitlink/gitea_hat.git"' + ref: '"refs/heads/develop"' + 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: 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.69.134"' + remote_port: '"30122"' + 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: gitlink_ssh_cmd_0 + name: ssh执行命令(支持跳板机) + task: yystopf/gitlink_ssh_cmd@0.0.6 + input: + ssh_private_key: ((ssh.siyao)) + remote_host: '"10.9.69.134"' + 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: end name: 结束 task: end needs: - - ssh_cmd_0 + - gitlink_ssh_cmd_0