docker-compose-viz/ci/deploy.sh
2017-06-01 19:23:22 +02:00

11 lines
361 B
Bash
Executable file

#!/bin/bash
export REPO=pmsipilot/docker-compose-viz
export TAG=`if [ "$TRAVIS_BRANCH" == "master" ]; then echo "latest"; else echo $TRAVIS_BRANCH ; fi`
git reset --hard
composer install --no-dev --prefer-dist --classmap-authoritative
docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
docker build -f Dockerfile -t $REPO:$TAG .
docker push $REPO