From 5d36226b0223011967ac9236527bc80944448f01 Mon Sep 17 00:00:00 2001 From: aixianling Date: Tue, 25 Feb 2025 13:58:35 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20=E6=9B=B4=E6=96=B0=20vless-api=20?= =?UTF-8?q?=E9=83=A8=E7=BD=B2=E6=B5=81=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在 git pull 后添加 docker restart vless-api 命令 - 优化了远程执行命令,确保服务在代码更新后重启 --- pipeline | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pipeline b/pipeline index dd8d7a9..cbc9c3c 100644 --- a/pipeline +++ b/pipeline @@ -7,7 +7,7 @@ pipeline { sshPublisher(publishers: [sshPublisherDesc(configName: 'lsw-vpn', transfers: [sshTransfer( sourceFiles: "", - execCommand: "cd /opt/vless-api&&git pull", + execCommand: "cd /opt/vless-api&&git pull&docker restart vless-api", remoteDirectory: "/opt/vless-api") ], usePromotionTimestamp: false, useWorkspaceInPromotion: false, verbose: true) ])