Skip to content

Commit

Permalink
Update build command to rename images
Browse files Browse the repository at this point in the history
  • Loading branch information
yjacolin committed Apr 9, 2016
1 parent c65d900 commit e945ed7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .build.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#!/bin/bash -e
if [ "$TRAVIS_BRANCH" == "master" ]; then
echo "Building image with tag latest"
docker build -t yjacolin/docker-mapcache:latest .
docker build -t yjacolin/mapcache:latest .
elif [ ! -z "$TRAVIS_TAG" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
echo "Building image with tag ${TRAVIS_TAG}"
docker build -t yjacolin/docker-mapcache:$TRAVIS_TAG .
docker build -t yjacolin/mapcache:$TRAVIS_TAG .
elif [ ! -z "$TRAVIS_BRANCH" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
echo "Building image with tag ${TRAVIS_BRANCH}"
docker build -t yjacolin/docker-mapcache:$TRAVIS_BRANCH .
docker build -t yjacolin/mapcache:$TRAVIS_BRANCH .
else
echo "Don't know how to build image"
exit 1
Expand Down

0 comments on commit e945ed7

Please sign in to comment.