Skip to content

fix: promote images from :latest so unchanged images get the release version#90

Merged
chutch3 merged 1 commit into
mainfrom
fix/promote-images-latest
Jun 23, 2026
Merged

fix: promote images from :latest so unchanged images get the release version#90
chutch3 merged 1 commit into
mainfrom
fix/promote-images-latest

Conversation

@chutch3

@chutch3 chutch3 commented Jun 23, 2026

Copy link
Copy Markdown
Owner

The promote-images job retagged each image from :<release-sha>:<version>. But with affected-only builds, an image that didn't change in the release commit has no :<release-sha> tag, so imagetools create fails for it and set -euo pipefail aborts the whole loop.

It only worked for 3.20.0 by luck: that release commit touched tools/ci + workflows (matching TOOLING_GLOBS → build-everything), so all 8 images happened to have the sha. A normal release commit would leave most images un-promoted.

Fix: retag from :latest instead. Every image always has a :latest (its most-recent main build, changed this cycle or not), so the retag never hits a missing source — and the semantics are better: "version X = the current state of every image at release time." Server-side manifest retag, no rebuild.

This is a prerequisite for pinning the compose files to release versions (a follow-up), which depend on every image reliably having its :<version> tag.

🤖 Generated with Claude Code

@chutch3 chutch3 merged commit 7135ad9 into main Jun 23, 2026
4 checks passed
@chutch3 chutch3 deleted the fix/promote-images-latest branch June 23, 2026 21:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant