Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions .github/workflows/CD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,10 @@ jobs:

if curl -fs http://localhost:${NEXT_PORT}/actuator/health; then
ln -sfn ~/nginx/${NEXT_CONF} ~/nginx/nginx.conf
docker exec -T nginx nginx -s reload || docker compose restart nginx
docker --profile $CURRENT_PROFILE stop $CURRENT_NAME
docker --profile $CURRENT_PROFILE rm -f $CURRENT_NAME
docker exec -i nginx nginx -t
docker exec -i nginx nginx -s reload || docker restart nginx
docker compose --profile $CURRENT_PROFILE stop $CURRENT_NAME
docker compose --profile $CURRENT_PROFILE rm -f $CURRENT_NAME
else
echo "New app failed health check. Rolling back..."
docker compose --profile $NEXT_PROFILE stop $NEXT_NAME
Expand Down