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.
## 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
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 main2026-12-04 10:19:42 +00:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Problem
The deploy-pull.sh health check used
127.0.0.1:8000which 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
HEALTH_CHECK_URLenv var (defaults tohttp://127.0.0.1:8000/api/health) so the deploy-hook container can usehttp://api:8000via Docker DNS..git-credentialsto.gitignorefor 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/healthset in.env.Paperclip-Issue: BIT-33898
Paperclip-Agent: nelson-baptista