Last active
March 25, 2016 16:45
-
-
Save sirwolfgang/5be5ad260c1d86b6c6a7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ -f /usr/src/app/VERSION ] && export APP_VERSION="$(cat /usr/src/app/VERSION)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "$(echo $GIT_BRANCH | awk '{gsub("origin/","", $0); print $0}')-$(echo $GIT_COMMIT | awk '{print substr($0,0,7)}')" > VERSION |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "$(git rev-parse --abbrev-ref HEAD)-$(git describe --always HEAD)" > VERSION |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment