From b96039f842c9438723999c22351d643bb129f7bf Mon Sep 17 00:00:00 2001 From: xxq250 Date: Mon, 30 Oct 2023 11:32:49 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20.devops/=E7=94=9F=E4=BA=A7=E7=8E=AF?= =?UTF-8?q?=E5=A2=83=E5=8F=91=E5=B8=83.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .devops/生产环境发布.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.devops/生产环境发布.yml b/.devops/生产环境发布.yml index 61a4672..2b09f41 100644 --- a/.devops/生产环境发布.yml +++ b/.devops/生产环境发布.yml @@ -37,9 +37,9 @@ workflow: name: 结束 task: end needs: - - scp_resource_0 + - ssh_cmd_0 - ref: scp_resource_0 - name: scp替换文件 + name: scp替换打包文件到服务器 task: scp_resource@1.4.3 input: ssh_pass: ((help_pro_server.password)) @@ -51,4 +51,14 @@ workflow: file_content: '""' needs: - nodejs_build_0 + - ref: ssh_cmd_0 + name: ssh执行命令 + task: ssh_cmd@1.1.1 + input: + ssh_ip: '""' + ssh_port: '"22"' + ssh_user: '"root"' + ssh_cmd: '""' + needs: + - scp_resource_0