mirror of
https://github.com/factoriotools/factorio-docker.git
synced 2024-12-25 10:28:22 +01:00
Compare $VERSION_SHORT wether we need to push the image
This commit is contained in:
parent
0173eab54c
commit
bbc2d42302
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^)")" =~ $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
|
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