fix(deploy): configurable health check URL for deploy-hook container (BIT-33898) #10

Merged
spark merged 1 commits from fix/BIT-33898-deploy-hook-health-check into main 2026-12-04 10:19:42 +00:00
Owner

Problem

The deploy-pull.sh health check used 127.0.0.1:8000 which doesn't reach the API from inside the deploy-hook container (separate network namespace). This caused webhook-triggered deploys to fail at the health check step, even though the actual deploy (build + recreate) succeeded.

Fix

  • Add HEALTH_CHECK_URL env var (defaults to http://127.0.0.1:8000/api/health) so the deploy-hook container can use http://api:8000 via Docker DNS.
  • Add .git-credentials to .gitignore for the credential file mounted into the deploy-hook container.

Testing

Verified on CT 244: webhook-triggered deploy succeeds with HEALTH_CHECK_URL=http://api:8000/api/health set in .env.

Paperclip-Issue: BIT-33898
Paperclip-Agent: nelson-baptista

## Problem The deploy-pull.sh health check used `127.0.0.1:8000` which doesn't reach the API from inside the deploy-hook container (separate network namespace). This caused webhook-triggered deploys to fail at the health check step, even though the actual deploy (build + recreate) succeeded. ## Fix - Add `HEALTH_CHECK_URL` env var (defaults to `http://127.0.0.1:8000/api/health`) so the deploy-hook container can use `http://api:8000` via Docker DNS. - Add `.git-credentials` to `.gitignore` for the credential file mounted into the deploy-hook container. ## Testing Verified on CT 244: webhook-triggered deploy succeeds with `HEALTH_CHECK_URL=http://api:8000/api/health` set in `.env`. Paperclip-Issue: BIT-33898 Paperclip-Agent: nelson-baptista
spark added 1 commit 2026-12-04 10:16:34 +00:00
The deploy-pull.sh health check used 127.0.0.1:8000 which doesn't
reach the API from inside the deploy-hook container (separate network
namespace). Add HEALTH_CHECK_URL env var so the container can use
http://api:8000 via Docker DNS. Also add .git-credentials to .gitignore
for the credential file mounted into the deploy-hook container.

Paperclip-Issue: BIT-33898
Paperclip-Agent: nelson-baptista
spark merged commit 54c317e452 into main 2026-12-04 10:19:42 +00:00
Sign in to join this conversation.