Files
loki/docs
5769fb846a feat(infra): one reusable CD workflow for every self-hosted app (#144)
Deploys only ever ran from a local pre-push hook, so anything merged on
GitHub never reached the box — aoz-housing served a five-month-old build
with green CI and correct main the whole time.

selfhost-deploy.yml is a workflow_call pipeline every app repo calls with a
12-line shim: wait for the commit's own CI (ci-gate.sh), pull the runtime
env from the box, then run the existing deploy.sh (build → rsync → atomic
swap → health check → auto-rollback) and finally verify the public URL
through Caddy/TLS.

- deploy.sh: REPO_OVERRIDE re-points the checkout path only; apps.conf
  stays SSOT for port/domain/app_dir/db.
- ci-gate.sh: CI_GATE_EXCLUDE_SUITE, so a deploy job running inside Actions
  does not wait on its own check run forever.
- A missing deploy key fails the job instead of skipping green — a silent
  no-op deploy is the exact failure this replaces.

Co-authored-by: test <test@test>
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
2026-08-03 09:33:58 +02:00
..