Last active
December 10, 2015 18:52
-
-
Save jcpst/0fae6d896fa9120b886e to your computer and use it in GitHub Desktop.
Codeship - Convert golang template from image_tag to environmental variables
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 $1 | sed -e 's/{\.//g' \ | |
-e 's/}}/}/g' \ | |
-e 's/{/\${/g' \ | |
-e 's/\([A-Z]\)/_\1/g' \ | |
-e 's/I_D/ID/' \ | |
-e 's/\${/\${CI/g' \ | |
| tr [a-z] [A-Z] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment