From 96811c093b870f23eee94b76650250f878d99c68 Mon Sep 17 00:00:00 2001 From: Clement Michaud Date: Thu, 1 Jun 2017 22:22:48 +0200 Subject: [PATCH] Tag docker image before pushing it to dockerhub --- scripts/docker-publish.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/docker-publish.sh b/scripts/docker-publish.sh index b2f71e4c..cae2c69a 100755 --- a/scripts/docker-publish.sh +++ b/scripts/docker-publish.sh @@ -6,7 +6,10 @@ if [ "$TRAVIS_BRANCH" == "master" ]; then TAG=$TRAVIS_TAG fi + IMAGE_NAME=clems4ever/authelia + docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"; - docker push clems4ever/authelia:$TAG; + docker tag $IMAGE_NAME $IMAGE_NAME:$TAG; + docker push $IMAGE_NAME:$TAG; fi