docker-php-nginx/.travis.yml
2016-03-16 13:45:51 +01:00

16 lines
416 B
YAML

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 -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
- docker build -t $REPO:$COMMIT .
- docker tag $REPO:$COMMIT $REPO:$TAG
- docker push $REPO