Skip to content

Instantly share code, notes, and snippets.

@emmaly
Created November 5, 2017 07:37
Show Gist options
  • Save emmaly/2304173f26812d82db7c0737f28e66c0 to your computer and use it in GitHub Desktop.
Save emmaly/2304173f26812d82db7c0737f28e66c0 to your computer and use it in GitHub Desktop.
Build all golang and devenv images
#!/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