CI: Actually check the entire array

This commit is contained in:
Sandro Jäckel 2019-05-16 19:43:44 +02:00
parent 9d2c38df65
commit 778d982c6d
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^)" | head -1)" =~ $VERSION ]] && [ "$TRAVIS_BRANCH" == "master" ]; then
if [[ "$(dirname "$(git diff --name-only HEAD^)")" =~ $VERSION ]] && [ "$TRAVIS_BRANCH" == "master" ]; then
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
docker push "$DOCKER_REPO:latest"