Built on Travis instead of Dockerhub.
This commit is contained in:
committed by
Abhilash Raj
parent
006d9687ea
commit
d5be8baa32
@@ -23,3 +23,4 @@ script:
|
||||
|
||||
after_script:
|
||||
- docker-compose down
|
||||
- sh .travis/deploy_dockerhub.sh
|
||||
|
||||
4
.travis/deploy_dockerhub.sh
Normal file
4
.travis/deploy_dockerhub.sh
Normal 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
|
||||
11
build.sh
11
build.sh
@@ -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/
|
||||
|
||||
Reference in New Issue
Block a user