优化代码

This commit is contained in:
王文艳
2026-05-23 23:04:36 +08:00
parent 70a8c8a843
commit 5a5ffe8aac
2 changed files with 2 additions and 4 deletions
Vendored
+1 -3
View File
@@ -103,7 +103,7 @@ pipeline {
}
}
}
stage('Docker Build & Push') {
steps {
script {
@@ -158,9 +158,7 @@ pipeline {
sh """
sshpass -p "\$SSH_PASS" ssh -o StrictHostKeyChecking=no \$SSH_USER@${cfg.deployHost} '
cd ${cfg.deployBase}/${cfg.composeDir}
docker compose pull
docker compose up -d --no-deps --force-recreate ${cfg.serviceName}
docker image prune -f
'
"""
}