Tag built images with the commit's short hash (closes #239) #250

Merged
clawbot merged 1 commits from issue-239-commit-hash-tags into next 2026-10-01 22:33:21 +02:00
1 Commits
Author SHA1 Message Date
sneak faf8681305 Tag built images with the commit's short hash (closes #239)
Check / check (pull_request) Skipped
Builds are tagged upaas-<app>:<short hash>, git's short form of
the commit checked out, instead of the deployment number. The clone
prints the short hash and fails without one.

A redeploy of a commit gives the tag to the new image. The cleanup
after a deploy now also finds the app's untagged images among those
its deployments recorded, and removes them by ID once the app neither
runs them nor would roll back to them. It keeps every image any app
uses, since apps that build the same commit can share one.

commit_sha is now saved on update so manual deploys keep the commit
read from the clone.

Model: opus-5-5
2026-10-01 20:22:24 +00:00