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 #705

Merged
merged 1 commit into from
Aug 25, 2023

Conversation

bencourliss
Copy link
Member

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>
@bencourliss bencourliss merged commit acfaca5 into open-horizon:master Aug 25, 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.

1 participant