Created
November 5, 2017 07:37
-
-
Save emmaly/2304173f26812d82db7c0737f28e66c0 to your computer and use it in GitHub Desktop.
Build all golang and devenv images
This file contains hidden or 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
#!/bin/bash | |
PULL= | |
if [ "$1" == "--pull" ]; then | |
PULL=y | |
fi | |
for L in golang-devenv-base golang-devenv atom-golang-devenv devenv; do | |
echo ["$L"] | |
pushd "$L" >/dev/null | |
echo -n "***** Started: "; date | |
if [ ! -z "$PULL" ]; then | |
git pull origin master | |
fi | |
if [ -x build-all.sh ]; then | |
./build-all.sh | |
else | |
docker build -t "dustywilson/$L:latest" . | |
fi | |
echo -n "***** Ended: "; date | |
popd >/dev/null | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment