From 2dd64de2ed22f5f4d9e0c201549890be1a3b3e75 Mon Sep 17 00:00:00 2001 From: Clement Michaud Date: Thu, 1 Jun 2017 22:16:19 +0200 Subject: [PATCH] Adding docker-publish script to set of deployment scripts --- scripts/docker-publish.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 scripts/docker-publish.sh diff --git a/scripts/docker-publish.sh b/scripts/docker-publish.sh new file mode 100755 index 00000000..b2f71e4c --- /dev/null +++ b/scripts/docker-publish.sh @@ -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 +