-
Notifications
You must be signed in to change notification settings - Fork 820
Apply latest tag only when the image tag matches a semantic version #4469
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR modifies the Docker image tagging strategy to reserve the :latest tag for semantic version releases. Instead of tagging master branch builds as :latest, only images with semantic version tags (e.g., v1.3.0) will receive the :latest tag, unless explicitly forced via FORCE_TAG_LATEST.
Key changes:
- Updated the condition for applying
:latesttag from master branch builds to semantic version releases - Master branch builds will continue to be tagged with
:masterand commit hash, but not:latest
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
I think it makes way more sense to |
This describes the what of the PR, but not the why. Given that |
I agree the description could be improved. This had come up during our 1<->1, so I can probably talk to the rationale. I felt that "latest" being an alias of "master" is a bit unexpected (as master should probably not be consumed externally). Having it map to the latest release felt less error prone. While depending on a floating tag is not generally recommended, it can be nice for ease of use. A potential alternative could be including a |
Frankly, I'm not sure anyone has a good reason to use fwiw the bootstrap testing currently depends on |
That is the "master" tag no? |
I think that makes sense. Do you also think we should rename |
I guess so, yeah, TIL we have a master tag. |
I think that makes sense. |
So the only thing left is to change master to latest-unstable? @maru-ava |
I think this PR should change |
Master is already tagged at |
I have now tagged master as "latest-unstable" |
I wasn't asking for an additional tagging step. Something is already tagging master and that would ideally be changed to tag |
The on:
workflow_dispatch:
push:
tags:
- "*"
branches:
- master
- devSo that's where the "master" tag is coming from. |
|
Tagging |
A recent PR (#4469) proposes to change the `latest` tag to refer to the image of the most recent release intead of the latest merge to master. This change requires updating the bootstrap monitor to use the `master` tag (already updated on every merge to master) to ensure bootstrap testing continues to target the most recently published image.
A recent PR (#4469) proposes to change the `latest` tag to refer to the image of the most recent release intead of the latest merge to master. This change requires updating the bootstrap monitor to use the `master` tag (already updated on every merge to master) to ensure bootstrap testing continues to target the most recently published image.
A recent PR (#4469) proposes to change the `latest` tag to refer to the image of the most recent release intead of the latest merge to master. This change requires updating the bootstrap monitor to use the `master` tag (already updated on every merge to master) to ensure bootstrap testing continues to target the most recently published image.
Changes scripts/build_image.sh so :latest is only applied when the image tag matches a semantic version (e.g., v1.3.0). Master builds continue to be tagged as :master (and by commit hash), not :latest, unless FORCE_TAG_LATEST is set.