Created
July 17, 2018 03:56
-
-
Save dantheman213/3583196bd9f1eb325f62d2f32c1c8ce2 to your computer and use it in GitHub Desktop.
Read every line of an environment variable file for Docker in as a standard bash script.
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
while read fileLine; do echo "Exporting ${fileLine}...\n"; export ${fileLine}; done < secrets.env | |
// EX: secrets.env | |
// MY_VAR=123 | |
// MY_API_KEY=ASDFKJDSFJL234545 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment