9 Commits
Author SHA1 Message Date
Xika 77ee80d3f1 fix(deploy): configurable health check URL for deploy-hook container (BIT-33898)
ci / verify (pull_request) Successful in 35s
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
2026-12-04 10:16:28 +00:00
1sonhador b02add914e fix: remove stale containers before compose recreate on deploy
Prevent docker name conflicts when a prior deploy fails mid-recreate.
2026-07-02 23:02:43 +01:00
1sonhador 31d32ed1b4 fix: rebuild migrate image and run migrations before API restart
Ensures new Alembic revisions apply on deploy.
2026-07-01 11:27:30 +01:00
XikaandPaperclip 20966501a8 fix(deploy): retry API health check after container restart
After --force-recreate web, the API container can take >10s to become
healthy. Retry up to 5 times with 5s backoff so transient startup
latency doesn't mark a successful deploy as failed.

Co-Authored-By: Paperclip <[email protected]>
2026-07-01 01:23:15 +00:00
XikaandPaperclip 146593bf05 chore(deploy): document webhook URL via NPM proxy
Gitea hook #28 now delivers to http://forwarder-hook.bitreport.pt/
(NPM CT 102 → 10.10.50.43:9090) instead of direct VLAN IP,
as Gitea VLAN 1010 cannot route to VLAN 1050 directly.

Co-Authored-By: Paperclip <[email protected]>
2026-07-01 01:13:19 +00:00
XikaandPaperclip c281b2b56d fix(deploy): write status before self-restarting deploy-hook
The deploy-hook container was killing itself before write_status ran,
leaving last_deploy=null on every successful deploy. Move health check
and write_status before the detached nohup restart of the deploy-hook
container so status is persisted even when the container recreates itself.

Co-Authored-By: Paperclip <[email protected]>
2026-07-01 01:02:00 +00:00
1sonhador df016a1e34 fix(deploy): use repo deploy script + expose git_sha in health
Webhook now runs /opt/forwarder/deploy/deploy-pull.sh from git (not stale
image copy). Rolling rebuild api then web; health reports FORWARDER_GIT_SHA.
2026-07-01 01:40:43 +01:00
1sonhador 210bc7e324 fix(api): default destination_email for legacy UI payloads
Accept account creates without destination_email (defaults to BizDocs
inbox) and force admin-ui rebuild on deploy so web container picks up UI changes.
2026-07-01 01:36:07 +01:00
1sonhador f6b276511a fix(connection): fail-fast IMAP/SMTP tests; add Gitea webhook autodeploy
Connection tests use 5s timeouts and run IMAP/SMTP in parallel so the UI
gets a clear error instead of nginx 504. Add deploy-hook service (:9090) and
deploy-pull.sh for push-to-main deploys on CT 243.
2026-07-01 01:09:53 +01:00