mirror of
https://github.com/bitbaum/loki.git
synced 2026-12-04 18:28:29 +01:00
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>