deploy.yml: serialise prod deploys and skip superseded runs (#167) #210

Merged
logan merged 3 commits from fix/167-deploy-concurrency into main 2026-10-04 18:29:32 -04:00
3 Commits
Author SHA1 Message Date
logan e9246510ea Merge branch 'main' into fix/167-deploy-concurrency 2026-10-04 18:29:21 -04:00
Logan CusanoandClaude Opus 5.5 06f01ebbe0 deploy.yml: run the superseded check after the #129 pre-deploy prune (server-26#167)
The tip check's git fetch ran before the disk-relief prune that #129 says
must be the first thing a deploy does; on a full disk the fetch could fail
and skip the prune. Prune only removes unreferenced images, so running it
on a run that then turns out superseded is harmless.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 18:07:08 -04:00
Logan CusanoandClaude Opus 5.5 71ee6101a1 deploy.yml: serialise prod deploys and skip superseded runs (server-26#167)
Two merges minutes apart ran two "Deploy to VM" jobs on the VM at once
(616/617, 652/656): racing compose pull/up, one run's prune breaking the
other's retry, health checks judging the wrong containers.

- deploy job: concurrency group drb-prod-deploy, cancel-in-progress false
  (Gitea >= 1.26 honours it, go-gitea/gitea#32751; server is 1.27.3).
- Deploy step exits clean, before touching the VM, when its SHA is no
  longer origin/main's tip; Health check is skipped for a superseded run.
  Stops an older run landing after a newer one and rolling prod back.
- deploy-firestore-rules: its own group plus the same tip check.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 18:01:53 -04:00