260324:1033 fix ci-deploy : optimize #05
CI / CD Pipeline / build (push) Successful in 6m43s
CI / CD Pipeline / deploy (push) Successful in 1m5s

This commit is contained in:
admin
2026-03-24 10:33:25 +07:00
parent 1a2b7ead65
commit a3e3206b06
2 changed files with 40 additions and 173 deletions
+3 -8
View File
@@ -102,14 +102,9 @@ jobs:
# Ensure scripts are executable
chmod +x scripts/deploy.sh scripts/rollback.sh 2>/dev/null || true
echo "🚀 Executing Blue-Green deployment..."
# Execute deployment with proper logging
./scripts/deploy.sh 2>&1 | tee /share/np-dms/app/logs/deploy-$(date +%Y%m%d-%H%M%S).log
mkdir -p /share/np-dms/app/logs
DEPLOY_STATUS=${PIPESTATUS[0]}
if [ $DEPLOY_STATUS -ne 0 ]; then
echo "✗ Deployment failed with status $DEPLOY_STATUS"
exit 1
fi
echo "🚀 Executing deployment..."
./scripts/deploy.sh
echo "✓ Deployment completed successfully"