deploy
This commit is contained in:
parent
138bbdf71a
commit
981aae38d1
1 changed files with 8 additions and 13 deletions
|
|
@ -486,16 +486,8 @@ jobs:
|
||||||
RELOAD_RESULT=$?
|
RELOAD_RESULT=$?
|
||||||
if [ $RELOAD_RESULT -eq 0 ]; then
|
if [ $RELOAD_RESULT -eq 0 ]; then
|
||||||
echo "✅ nginx reloaded successfully"
|
echo "✅ nginx reloaded successfully"
|
||||||
else
|
|
||||||
echo "❌ nginx reload failed with exit code $RELOAD_RESULT"
|
|
||||||
sudo systemctl status nginx --no-pager || true
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
echo "❌ nginx configuration test failed!"
|
|
||||||
sudo nginx -t || true
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
# Only proceed with post-reload checks if nginx reload was successful
|
||||||
# Wait for services to stabilize after reload
|
# Wait for services to stabilize after reload
|
||||||
echo "⏳ Waiting for services to stabilize after reload..."
|
echo "⏳ Waiting for services to stabilize after reload..."
|
||||||
sleep 5
|
sleep 5
|
||||||
|
|
@ -685,11 +677,14 @@ jobs:
|
||||||
|
|
||||||
echo "✅ Web app deployment completed"
|
echo "✅ Web app deployment completed"
|
||||||
else
|
else
|
||||||
echo "❌ nginx configuration test failed!"
|
echo "❌ nginx reload failed, skipping post-reload checks"
|
||||||
sudo nginx -t || true
|
|
||||||
exit 1
|
|
||||||
fi
|
fi
|
||||||
' || echo "Step timed out after 20 minutes"
|
else
|
||||||
|
echo "❌ nginx configuration test failed!"
|
||||||
|
sudo nginx -t || true
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
' || echo "Step timed out after 20 minutes"
|
||||||
ENDSSH
|
ENDSSH
|
||||||
|
|
||||||
final-verification:
|
final-verification:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue