open-horizon / exchange-api

Horizon Exchange REST API Server
Apache License 2.0
11 stars 30 forks source link

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

Closed bencourliss closed 1 year ago

bencourliss commented 1 year ago

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.