mirror of
https://github.com/factoriotools/factorio-docker.git
synced 2024-12-25 02:18: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 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"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user