Skip to content
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

fix(build): always tag image versions #776

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

rti
Copy link
Contributor

@rti rti commented Sep 30, 2024

Before, local and ci builds would not tag image versions, just latest. This lead to e.g. deploy not picking up local builds. With this change, images get always tagged with versions numbers, regardless of where they are built.

Before, local builds would not tag image versions, just latest.
This lead to e.g. deploy not picking up local builds. With this
change, images get always tagged with versions numbers, regardless
of where they are built.
@rti rti requested a review from a team September 30, 2024 09:57
Copy link
Contributor

@lorenjohnson lorenjohnson left a comment

Choose a reason for hiding this comment

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

The reasoning behind not tagging the version until we have specifically decided to publish as a safeguard somewhat from different builds with the same version numbers floating around. I do still prefer it that way, but it does of course means we don't automatically use local builds when running deploy. I think we should look at how to solve that a different way and keep the version tagging as a publish event.

@rti
Copy link
Contributor Author

rti commented Oct 24, 2024

I see, thanks for your response. I understand that reasoning. I'd still like to noodle a bit on that topic, because I personally see pros in both approaches.

@lorenjohnson
Copy link
Contributor

I see, thanks for your response. I understand that reasoning. I'd still like to noodle a bit on that topic, because I personally see pros in both approaches.

Noodle away :) Here are a couple additional thoughts on this:

Multi-platform builds can't be stored locally, so if/when we go there tagging a local build that is not multi-platform could be trouble making. Having our workflow ensure that there is only one "authoritative" version under any version tag is worth prioritising I think, and central to why I see version tagging as a push/publish activity.

If we need to test against previous built versions I think we should be pulling them from the registry. Perhaps our pre-releases should go up to the registry as well to cover the gray areas--like not every local build--but ones in release testing vs active development.

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