Commit Graph

2 Commits

Author SHA1 Message Date
jhodgkin c97f1f73ce Prune old image generations after each prod deploy
Deploy to Dev / Deploy & Smoke Test (push) Successful in 22s
Deploy to Prod / Deploy & Smoke Test (prod) (push) Successful in 42s
Each promotion pulls a uniquely SHA-tagged image, so without cleanup
old generations accumulate indefinitely. CT111's disk is small (was
5.9GB, just grown to 8.8GB) and filled up mid-pull on the first real
promotion attempt. Prune dangling images after up -d swaps traffic to
the new containers, once their predecessors are no longer referenced.
2026-07-20 05:30:06 +00:00
jhodgkin 016256cd2f Add registry-based prod promotion, separate from auto dev deploy
Deploy to Dev / Deploy & Smoke Test (push) Successful in 20s
Deploy to Prod / Deploy & Smoke Test (prod) (push) Failing after 30s
Dev keeps auto-deploying on every push to main, same as before, but now
also publishes each build to git.jerodrigged.com's container registry
tagged by short commit SHA (best-effort - never blocks the dev deploy
if REGISTRY_TOKEN isn't set yet).

Prod deploys only on an intentional `git push origin main:prod`, and
only ever pulls a pre-built SHA-tagged image - it never rebuilds from
source. This guarantees prod runs the exact artifact dev already
validated, and makes promoting an untested commit fail loudly (pull of
a nonexistent tag) instead of silently rebuilding something new.

Needs new secrets before the prod path works: PROD_SSH_KEY, PROD_HOST,
PROD_USER, REGISTRY_USER, REGISTRY_TOKEN. PROD_SSH_KEY/PROD_HOST/
REGISTRY_USER are already set; PROD_USER and REGISTRY_TOKEN still need
Jerod's input.
2026-07-20 04:47:49 +00:00