From 7d7a3c437cd92b2eb0fe81fa4d8765de6eec2c84 Mon Sep 17 00:00:00 2001 From: robbond Date: Fri, 6 Mar 2026 17:57:32 +0000 Subject: [PATCH] update --- Jenkinsfile | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 3a95083..7eee464 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -79,34 +79,34 @@ stage('Deploy') { keyFileVariable: 'SSH_KEY' )]) { sh ''' -bash -eo pipefail << 'EOF' -set -euo pipefail + bash -eo pipefail << 'EOF' + set -euo pipefail -ssh -i "$SSH_KEY" "$APP_USER@$APP_HOST" "mkdir -p $DEPLOY_PATH/scripts" + ssh -i "$SSH_KEY" "$APP_USER@$APP_HOST" "mkdir -p $DEPLOY_PATH/scripts" -rsync -az \ - -e "ssh -i $SSH_KEY" \ - docker-compose.prod.yml \ - "$APP_USER@$APP_HOST:$DEPLOY_PATH/" + rsync -az \ + -e "ssh -i $SSH_KEY" \ + docker-compose.prod.yml \ + "$APP_USER@$APP_HOST:$DEPLOY_PATH/" -rsync -az \ - -e "ssh -i $SSH_KEY" \ - scripts/ \ - "$APP_USER@$APP_HOST:$DEPLOY_PATH/scripts/" + rsync -az \ + -e "ssh -i $SSH_KEY" \ + scripts/ \ + "$APP_USER@$APP_HOST:$DEPLOY_PATH/scripts/" -docker save ${IMAGE_LATEST} ${IMAGE_BUILD} \ - | ssh -i "$SSH_KEY" "$APP_USER@$APP_HOST" 'docker load' + docker save ${IMAGE_LATEST} ${IMAGE_BUILD} \ + | ssh -i "$SSH_KEY" "$APP_USER@$APP_HOST" 'docker load' -ssh -i "$SSH_KEY" "$APP_USER@$APP_HOST" \ - "cd $DEPLOY_PATH && chmod +x ./scripts/deploy-prod.sh ./scripts/smoke-check.sh ./scripts/rollback-prod.sh" + ssh -i "$SSH_KEY" "$APP_USER@$APP_HOST" \ + "cd $DEPLOY_PATH && chmod +x ./scripts/deploy-prod.sh ./scripts/smoke-check.sh ./scripts/rollback-prod.sh" -ssh -i "$SSH_KEY" "$APP_USER@$APP_HOST" \ - "cd $DEPLOY_PATH && ./scripts/deploy-prod.sh" -EOF - ''' + ssh -i "$SSH_KEY" "$APP_USER@$APP_HOST" \ + "cd $DEPLOY_PATH && ./scripts/deploy-prod.sh" + EOF + ''' + } + } } - } -} stage('Smoke check') { steps {