From 0828f86077cbc1f0b4ce7973d367d382701f3a44 Mon Sep 17 00:00:00 2001 From: yystopf Date: Tue, 11 Apr 2023 09:26:24 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20.devops/gitlink=E6=AD=A3=E5=BC=8F?= =?UTF-8?q?=E7=8E=AF=E5=A2=83.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .devops/gitlink正式环境.yml | 65 ++++++++++++++++++++++----------- 1 file changed, 43 insertions(+), 22 deletions(-) diff --git a/.devops/gitlink正式环境.yml b/.devops/gitlink正式环境.yml index f63f67c..182f7f1 100644 --- a/.devops/gitlink正式环境.yml +++ b/.devops/gitlink正式环境.yml @@ -27,30 +27,51 @@ workflow: 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 + - 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_18_0.products_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