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

@@ -23,3 +23,4 @@ script:
after_script:
- docker-compose down
- sh .travis/deploy_dockerhub.sh

View File

@@ -0,0 +1,4 @@
#!/bin/sh
docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
docker push maxking/mailman-web
docker push maxking/mailman-core

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/