-
Notifications
You must be signed in to change notification settings - Fork 510
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_3811: send semver version in api/stattus/buildinfo for cloud deployments #4110
base: main
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.
Thanks for looking into this!
I think it's close but I'm afraid it will break the way we've named our docker images. I've pinged a few team members who I think will have more a immediate understanding of how this works.
run: | | ||
if [ -n "$(git status --porcelain VERSION)" ]; then | ||
git config user.name "github-actions[bot]" | ||
git config user.email "github-actions[bot]@users.noreply.github.com" |
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.
@ie-pham do you think this will work with our latest security changes to GHA?
i'll admit i'm not sure where the creds are that allow this to work?
VERSION=$(cat "${REPO_ROOT}/VERSION" ) | ||
if is_valid_semver "$VERSION"; then | ||
echo "$VERSION" | ||
exit 0 |
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.
So I believe that changing this script will update the version as expected b/c of this line:
https://github.com/grafana/tempo/blob/main/Makefile#L50
However I think it will also change the output of the script as used here:
https://github.com/grafana/tempo/blob/main/.drone/drone.yml#L12
which I'm pretty sure is how our docker images are tagged:
https://hub.docker.com/r/grafana/tempo/tags
@zalegrala do you know off the top of your head if this is how it works?
What this PR does:
image-tag
tool is updated to validate and use the semver version, if present. Otherwise default to current behavior.Which issue(s) this PR fixes:
Fixes #3811
Checklist
CHANGELOG.md
updated - the order of entries should be[CHANGE]
,[FEATURE]
,[ENHANCEMENT]
,[BUGFIX]