chore: Fix deploy script

This commit is contained in:
jubianchi 2018-01-20 10:28:12 +01:00
parent 96ee45edc9
commit 27758c0f0a
No known key found for this signature in database
GPG key ID: 5D9C896D2AA9E390

View file

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