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.
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.