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

Updated to use git SHA for release label on Docker image #706

Merged
merged 1 commit into from
Aug 24, 2023

Conversation

bencourliss
Copy link
Member

@bencourliss bencourliss commented Aug 24, 2023

The release label on the Docker image created for Exchange should use the last commit SHA (shortened). This is done by setting the GIT_SHORT_SHA environment variable during the build. If it is missing, the previous functionality of using the version value for this label is used.

The GitHub Action was also re-ordered to checkout the code sooner so we can grab the commit hash at an earlier point in time. A redundant step was also combined into an earlier step. Also added some validation of the environment variables.

Signed-off-by: Ben Courliss <bencourliss@ibm.com>
@naphelps naphelps merged commit 432cf55 into open-horizon:v2.110 Aug 24, 2023
2 checks passed
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.

None yet

2 participants