Skip to content

Instantly share code, notes, and snippets.

@adamtester
Created March 6, 2018 14:13
Show Gist options
  • Save adamtester/9b27228d3170508ee14df1e0a4029bc5 to your computer and use it in GitHub Desktop.
Save adamtester/9b27228d3170508ee14df1e0a4029bc5 to your computer and use it in GitHub Desktop.
Update .env ENV variable with git hash on deploy
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