Adding automatic deployment on Dockerhub

This commit is contained in:
Clement Michaud 2017-03-16 22:11:24 +01:00
parent e4a8f39dba
commit 16827983e7

View File

@ -15,6 +15,13 @@ script:
- docker-compose up -d - docker-compose up -d
- sleep 5 - sleep 5
- ./scripts/check_services.sh - ./scripts/check_services.sh
after_success:
- if [ "$TRAVIS_BRANCH" == "master" ]; then
docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD";
docker push USER/REPO;
fi
deploy: deploy:
provider: npm provider: npm
email: clement.michaud34@gmail.com email: clement.michaud34@gmail.com
@ -28,3 +35,4 @@ notifications:
- clement.michaud34@gmail.com - clement.michaud34@gmail.com
on_success: change on_success: change
on_failure: always on_failure: always