Skip to content

Commit

Permalink
Don't be clever about running release Docker builds
Browse files Browse the repository at this point in the history
This caused Travis to not properly build Docker images and in the end
it was only trying to save a small amount of work.
  • Loading branch information
strugee committed May 16, 2018
1 parent 310743b commit a268d68
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions util/build-docker.sh
Expand Up @@ -29,10 +29,7 @@ elif [ $TYPE = beta ]; then
docker build .. --tag pumpio/pump.io:beta --tag pumpio/pump.io:$PKGVER
docker push pumpio/pump.io
elif [ $TYPE = release ]; then
# If we're not on an exact tag, bail
git describe --exact-match >/dev/null &>/dev/null || exit 0
# See the really long comment above for why we do this
git symbolic-ref HEAD >/dev/null &>/dev/null && exit 0
# TODO don't build on tags, only on branches (which saves Travis some work)
docker_login
docker build .. --tag pumpio/pump.io:release --tag pumpio/pump.io:$PKGVER
docker push pumpio/pump.io
Expand Down

0 comments on commit a268d68

Please sign in to comment.