Adding docker-publish script to set of deployment scripts

This commit is contained in:
Clement Michaud 2017-06-01 22:16:19 +02:00
parent 8a297b5db5
commit 2dd64de2ed

12
scripts/docker-publish.sh Executable file
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