Created
June 28, 2017 12:48
-
-
Save AlexanderWingard/d0086e22f24dcbfbe3c45a8534c41174 to your computer and use it in GitHub Desktop.
envsubst example
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
out/* |
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
[ | |
{user: "$USER"} | |
] |
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
include user.mk | |
out/data.json: user.mk data.json.envsubst | |
mkdir -p out | |
envsubst <data.json.envsubst >out/data.json |
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
export USER=apa |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment