Tag docker image before pushing it to dockerhub

This commit is contained in:
Clement Michaud 2017-06-01 22:22:48 +02:00
parent 66bc6e8ec4
commit 96811c093b

View File

@ -6,7 +6,10 @@ if [ "$TRAVIS_BRANCH" == "master" ]; then
TAG=$TRAVIS_TAG TAG=$TRAVIS_TAG
fi fi
IMAGE_NAME=clems4ever/authelia
docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"; 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 fi