Created
March 6, 2018 14:13
-
-
Save adamtester/9b27228d3170508ee14df1e0a4029bc5 to your computer and use it in GitHub Desktop.
Update .env ENV variable with git hash on deploy
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
sed -i "s/RELEASE=.*/RELEASE=$(git log --pretty="%h" -n1 HEAD)/" .env |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment