Adding docker-publish script to set of deployment scripts

pull/38/head
Clement Michaud 2017-06-01 22:16:19 +02:00
parent 8a297b5db5
commit 2dd64de2ed
1 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,12 @@
#!/bin/bash
if [ "$TRAVIS_BRANCH" == "master" ]; then
TAG=latest
if [ ! -z "$TRAVIS_TAG" ]; then
TAG=$TRAVIS_TAG
fi
docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD";
docker push clems4ever/authelia:$TAG;
fi