fix(deploy): configurable health check URL for deploy-hook container (BIT-33898) (#10)
ci / verify (push) Successful in 53s

This commit was merged in pull request #10.
This commit is contained in:
spark committed 2026-12-04 10:19:41 +00:00
commit 54c317e452
2 files changed
+6 -2

No files matched your search

+3
View File
@@ -50,6 +50,9 @@ processed_emails.json
storage/deploy-logs/*
!storage/deploy-logs/.gitkeep
# Git credentials (deploy-hook container)
.git-credentials
# OS
.DS_Store
Thumbs.db
+3 -2
View File
@@ -66,12 +66,13 @@ log "Building API + worker ($GIT_SHA)"
$COMPOSE build --build-arg GIT_SHA="$GIT_SHA" web
remove_stale_service_containers web
$COMPOSE up -d --force-recreate web
HEALTH_URL="${HEALTH_CHECK_URL:-http://127.0.0.1:8000/api/health}"
for i in 1 2 3 4 5; do
curl -sf --max-time 8 http://127.0.0.1:8000/api/health >/dev/null && break
curl -sf --max-time 8 "$HEALTH_URL" >/dev/null && break
log "API not ready yet (attempt $i/5), retrying in 5s..."
sleep 5
done
curl -sf --max-time 8 http://127.0.0.1:8000/api/health >/dev/null
curl -sf --max-time 8 "$HEALTH_URL" >/dev/null
write_status "ok $GIT_SHA $(date -Iseconds)"
log "Deploy OK ($GIT_SHA)"
log "Refreshing deploy-hook (self-restart — runs detached)"