fix: remove extra quotes from docker inspect format in health check

This commit is contained in:
NetworkCats
2026-03-08 01:04:37 +08:00
parent 9ff0649c02
commit f1b89e5a64
+1 -1
View File
@@ -141,7 +141,7 @@ jobs:
echo "Active deployment color: ${DEPLOY_COLOR}"
for i in $(seq 1 30); do
status=$(ssh $SSH_OPTS "$VPS_HOST" \
"docker inspect --format='{{ '{{' }}.State.Health.Status{{ '}}' }}' rustyip-app-${DEPLOY_COLOR}" 2>/dev/null) || true
"docker inspect --format {{ '{{' }}.State.Health.Status{{ '}}' }} rustyip-app-${DEPLOY_COLOR}" 2>/dev/null) || true
if [ "$status" = "healthy" ]; then
echo "Deployment verified: app-${DEPLOY_COLOR} is healthy"
exit 0