Adding automatic deployment on Dockerhub

This commit is contained in:
Clement Michaud 2017-03-16 22:18:54 +01:00
parent 293e8c0f95
commit 7d98fefb88

View File

@ -11,6 +11,7 @@ addons:
before_install: npm install -g npm@'>=2.13.5' before_install: npm install -g npm@'>=2.13.5'
script: script:
- npm test - npm test
- docker build clems4ever/authelia
- docker-compose build - docker-compose build
- docker-compose up -d - docker-compose up -d
- sleep 5 - sleep 5
@ -19,7 +20,7 @@ script:
after_success: after_success:
- if [ "$TRAVIS_BRANCH" == "master" ]; then - if [ "$TRAVIS_BRANCH" == "master" ]; then
docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"; docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD";
docker push USER/REPO; docker push clems4ever/authelia;
fi fi
deploy: deploy: