Fix Docker publish tag handling#9
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the Docker publish workflow so tag-triggered releases publish only the pushed tag name and latest, matching the intended Docker image tagging behavior.
Changes:
- Narrows workflow tag triggers to
v*.*. - Removes semver-derived Docker metadata tags.
- Keeps publishing the exact pushed tag and
latest.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
Motivation
v1.0and avoid publishing multiple semver-derived image tags so only the pushed tag name andlatestare published.Description
on.push.tagsin.github/workflows/docker-publish.ymlto usev*.*instead ofv*.*.*and*.*.*.type=semveroutputs fromdocker/metadata-action@v5so the only image tags emitted aretype=ref,event=tagandtype=raw,value=latest.Testing
- 'v*.*', no longer containsv*.*.*/*.*.*, and that image tags are limited totype=ref,event=tagandtype=raw,value=latest, and it succeeded.yamlmodule.YAML.load_filewhich succeeded.git diff --checkwhich succeeded.Codex Task