fix: prevent stale rolling tags when refreshing older patch releases#3
Draft
Copilot wants to merge 2 commits into
Draft
fix: prevent stale rolling tags when refreshing older patch releases#3Copilot wants to merge 2 commits into
Copilot wants to merge 2 commits into
Conversation
Add a 'Check whether rolling semantic tags should be published' step to the generate-metadata job. It queries Docker Hub (using skopeo, already available on ubuntu-latest) for all existing X.Y.Z-style tags and only sets publish_minor_tag / publish_major_tag to true when the version being built is the highest published patch for its major.minor / major series respectively. The tags generation step in docker-linux now conditionally emits the X.Y and X rolling tags based on those two outputs, preventing a refresh of e.g. v3.18.0 from overwriting the '3' or '3.18' tags after v3.19.0 has already been published.
- Use ::warning:: annotation when registry fetch fails so the fallback is visible in the workflow log - Rename HIGHER to HIGHER_MINOR / HIGHER_MAJOR to avoid ambiguity
Copilot
AI
changed the title
fix: skip rolling semantic tags when refreshing an older patch release
fix: prevent stale rolling tags when refreshing older patch releases
May 26, 2026
Copilot created this pull request from a session on behalf of
rsenden
May 26, 2026 22:45
View session
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refreshing images for an older release (e.g. v3.18.0) would overwrite rolling tags
3and3.18even if v3.19.0 had already been published, causing those tags to regress to an older fcli version.Changes
New step:
Check whether rolling semantic tags should be published(ingenerate-metadata)skopeo list-tagsto fetch all published tags for the target imageX.Y.*andX.*.*tags against the version being built usingsort -Vpublish_minor_tag/publish_major_tagtotrueonly when the current version is ≥ the highest published patch in that seriestrue(with a::warning::annotation) when the registry is unreachable or the image has no tags yetfalse/falsefor non-semantic versions (dev_*)Two new job outputs on
generate-metadatapublish_major_tag,publish_minor_tag— consumed by the tags step below.docker-linuxtags generation stepX.YandXrolling tags are now emitted conditionally:Immutable
X.Y.ZandX.Y.Z-timestamptags are always emitted, unchanged.