Merge pull request #19 from clems4ever/docker-auto-push

Adding automatic deployment on Dockerhub
pull/22/head
Clément Michaud 2017-03-16 22:14:06 +01:00 committed by GitHub
commit 293e8c0f95
1 changed files with 8 additions and 0 deletions

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