From 9ff0649c02978a53248d1bebecbc498febf6486e Mon Sep 17 00:00:00 2001 From: NetworkCats Date: Sun, 8 Mar 2026 00:36:18 +0800 Subject: [PATCH] fix: prevent docker inspect SSH exit from aborting health check loop --- .github/workflows/deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 5c83c32..fea8f99 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -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) + "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