CI: Fix version detection of which image to push, actually push the image

This commit is contained in:
Sandro Jäckel 2019-05-16 19:39:23 +02:00
parent b2a4195e13
commit 9d2c38df65
No known key found for this signature in database
GPG Key ID: 236B6291555E8401

View File

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