From 9e3d2a85fd360a2bcdb574e0c5c2f15b2827e581 Mon Sep 17 00:00:00 2001 From: David Gwilliam Date: Sun, 17 May 2026 03:28:12 -0700 Subject: [PATCH] fix: use docker exec for healthcheck instead of external URL External URL goes through nginx proxy which has slow routing updates. Internal docker exec is instant and tests the actual app health. --- .gitea/workflows/pr.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/pr.yml b/.gitea/workflows/pr.yml index 9500101..8027421 100644 --- a/.gitea/workflows/pr.yml +++ b/.gitea/workflows/pr.yml @@ -81,12 +81,12 @@ jobs: - name: Wait for CI site to be healthy run: | - for i in {1..60}; do - if curl -sf https://euchre-ci.notsosm.art/api/health > /dev/null 2>&1; then + for i in {1..30}; do + if docker exec euchre-camp-ci wget -q -O- http://localhost:3000/api/health 2>/dev/null | grep -q healthy; then echo "CI site is healthy" exit 0 fi - sleep 1 + sleep 2 done echo "CI site failed to become healthy after 60 seconds" docker compose -f /apps/euchre_camp_ci/docker-compose.yml logs app