mirror of
https://github.com/bplein/factorio-docker.git
synced 2025-01-10 03:16:41 +02:00
CI: Actually check the entire array
This commit is contained in:
parent
9d2c38df65
commit
778d982c6d
2
build.sh
2
build.sh
@ -29,7 +29,7 @@ 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^)")" =~ $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"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user