We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f1b89e5 commit 609c719Copy full SHA for 609c719
.github/workflows/deploy.yml
@@ -140,9 +140,8 @@ jobs:
140
DEPLOY_COLOR=$(ssh $SSH_OPTS "$VPS_HOST" "cat /opt/rustyip/.active_color")
141
echo "Active deployment color: ${DEPLOY_COLOR}"
142
for i in $(seq 1 30); do
143
- status=$(ssh $SSH_OPTS "$VPS_HOST" \
144
- "docker inspect --format {{ '{{' }}.State.Health.Status{{ '}}' }} rustyip-app-${DEPLOY_COLOR}" 2>/dev/null) || true
145
- if [ "$status" = "healthy" ]; then
+ if ssh $SSH_OPTS "$VPS_HOST" \
+ "docker exec rustyip-app-${DEPLOY_COLOR} wget -qO /dev/null http://127.0.0.1:3000/health" 2>/dev/null; then
146
echo "Deployment verified: app-${DEPLOY_COLOR} is healthy"
147
exit 0
148
fi
0 commit comments