Compare $VERSION_SHORT wether we need to push the image

This commit is contained in:
Sandro Jäckel 2019-05-16 20:04:24 +02:00
parent 0173eab54c
commit bbc2d42302
No known key found for this signature in database
GPG Key ID: 236B6291555E8401

View File

@ -29,7 +29,7 @@ fi
docker build . -t $DOCKER_REPO:$TAG
docker images
if [[ "$(dirname "$(git diff --name-only HEAD^)")" =~ $VERSION ]] && [ "$TRAVIS_BRANCH" == "master" ]; then
if [[ "$(dirname "$(git diff --name-only HEAD^)")" =~ $VERSION_SHORT ]] && [ "$TRAVIS_BRANCH" == "master" ]; then
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
docker push "$DOCKER_REPO:latest"