Skip to content

chore: Add dist-tag to release #1045

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

Merged
merged 1 commit into from
Oct 31, 2022
Merged

Conversation

seebees
Copy link
Contributor

@seebees seebees commented Oct 31, 2022

Currently the release build will always add the latest tag to every release.
If a release is for an old version,
this will result in the wrong version being tagged as latest.

This ENV in the build allows for proper tagging.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Check any applicable:

  • Were any files moved? Moving files changes their URL, which breaks all hyperlinks to the files.

Currently the release build will _always_ add the `latest` tag
to every release.
If a release is for an old version,
this will result in the wrong version being tagged as `latest`.

This ENV in the build allows for proper tagging.
@seebees seebees requested a review from a team as a code owner October 31, 2022 19:08
Comment on lines +7 to +8
# An explicit distribution tag
DIST_TAG: "latest"
Copy link
Contributor

Choose a reason for hiding this comment

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

Question: Can this be overridden at some point before the release?
I think that is how CodeBuild works... but I just want to verify.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes. This can be overridden just like the BRANCH variable to release from anything other than upstream :)

Copy link
Contributor

@josecorella josecorella left a comment

Choose a reason for hiding this comment

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

lgtm - when we port this over to the 2.x branch is the value of DIST_TAG == 2.x?

@seebees
Copy link
Contributor Author

seebees commented Oct 31, 2022

I think so.
This is how to set the value,
not what the value should be for any given release.

@seebees seebees merged commit fd13828 into aws:master Oct 31, 2022
@seebees seebees deleted the add-dist-tag-to-release branch October 31, 2022 22:10
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.

3 participants