Skip to content

ci: use proper git ref for versioning #3585

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
Feb 8, 2022

Conversation

crazy-max
Copy link
Contributor

Discussed with @milosgajdos. Yesterday while releasing v2.8.0 tag, version was still v2.8.0-beta.1 because of the current working tree info. This PR solves that behavior in our CI by using the actual ref that triggers the workflow using the GITHUB_REF env var.

Can be tested with:

GITHUB_REF=refs/tags/v5.0.0 docker buildx bake

cc @thaJeztah

Signed-off-by: CrazyMax crazy-max@users.noreply.github.com

Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
Copy link
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

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

SGTM

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