Built on Travis instead of Dockerhub.

This commit is contained in:
Abhilash Raj
2017-05-20 17:29:53 -07:00
committed by Abhilash Raj
parent 006d9687ea
commit d5be8baa32
3 changed files with 13 additions and 3 deletions

View File

@@ -4,8 +4,13 @@ set -e
# Use this script to build docker images.
if [ "$TRAVIS_BRANCH" = "master" ]; then
TAG="latest"
else
TAG="$TRAVIS_BRANCH"
fi
DOCKER=docker
$DOCKER build -t maxking/mailman-core core/
$DOCKER build -t maxking/mailman-web web/
$DOCKER build -t maxking/mailman-core:$TAG core/
$DOCKER build -t maxking/mailman-web:$TAG web/