Skip to content

ci(noble): stop noble releases from tagging latest - #45

Merged
coretl merged 1 commit into
noblefrom
fix/noble-no-latest-tag
Jul 29, 2026
Merged

ci(noble): stop noble releases from tagging latest#45
coretl merged 1 commit into
noblefrom
fix/noble-no-latest-tag

Conversation

@coretl

@coretl coretl commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

Root cause

The merge job's "Create tags for publishing image" step uses docker/metadata-action with no flavor: input, so it falls back to the action default flavor: latest=auto. Because the tag list includes type=ref,event=tag and noble-* release tags (e.g. noble-20260610) are not pre-release semver, latest=auto auto-generates a latest tag on every noble tag push. That overwrites latest in GHCR to point at the Ubuntu 24.04 (noble) image, even though only the resolute (Ubuntu 26.04, main) release should own latest.

Fix

Add flavor: latest=false to the metadata-action step to disable the automatic latest tagging. The existing explicit tags: list (noble, 24.04, and the ref tag) is unchanged — noble releases still get tagged correctly, they just no longer also steal latest.

Follow-up (not done in this PR)

Live latest in GHCR still points at the noble image from today's release; it will self-correct on the next resolute (main) release, or an admin can re-point it manually. This PR only stops future noble releases from stealing it.

Companion PR

A matching PR targeting main adds the same flavor: latest=false there too, so latest becomes explicit-only (produced solely by the type=raw,value=latest entry that tracks resolute releases) and is immune to auto-tagging regardless of which branch releases.


Generated by Claude Code

docker/metadata-action defaults to flavor: latest=auto, which
auto-adds a latest tag on tag pushes since type=ref,event=tag is
present and noble-* tags are not pre-release semver. Set
flavor: latest=false so noble releases no longer overwrite latest
in GHCR.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Disables Docker metadata-action’s automatic latest tag generation for noble (Ubuntu 24.04) release tags, preventing noble releases from overwriting latest in GHCR and ensuring latest remains explicitly managed by the intended release line.

Changes:

  • Add flavor: latest=false to docker/metadata-action@v6 so latest is not auto-produced on noble tag pushes.
  • Keep the existing explicit tag set for noble releases (type=ref,event=tag, noble, 24.04) unchanged.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@coretl
coretl merged commit dc1401e into noble Jul 29, 2026
4 checks passed
@coretl
coretl deleted the fix/noble-no-latest-tag branch July 29, 2026 11:59
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.

2 participants