ci: 更新 vless-api 部署流程
- 在 git pull 后添加 docker restart vless-api 命令 - 优化了远程执行命令,确保服务在代码更新后重启
This commit is contained in:
2
pipeline
2
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)
|
||||
])
|
||||
|
||||
Reference in New Issue
Block a user