Switched to Docker Hub automated builds

This commit is contained in:
Tim de Pater 2019-01-26 13:55:46 +01:00
parent 659806c6d0
commit feccf27e19

View File

@ -1,15 +0,0 @@
services:
- docker
env:
global:
- COMMIT=${TRAVIS_COMMIT::8}
- REPO=trafex/alpine-nginx-php7
script:
- docker --version
- export TAG=`if [ "$TRAVIS_BRANCH" == "master" ]; then echo "latest"; else echo $TRAVIS_BRANCH ; fi`
- docker login -u $DOCKER_USER -p $DOCKER_PASS
- docker build -t $REPO:$COMMIT .
- docker tag $REPO:$COMMIT $REPO:$TAG
- docker push $REPO