mirror of
https://github.com/bplein/factorio-docker.git
synced 2025-01-06 03:03:49 +02:00
CI: Do not try to push master
This commit is contained in:
parent
b3c134d396
commit
cbaa20cdea
2
build.sh
2
build.sh
@ -44,7 +44,7 @@ if [[ "$(dirname "$(git diff --name-only HEAD^)")" =~ $VERSION_SHORT ]] && [ "$T
|
||||
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
|
||||
fi
|
||||
|
||||
if [ -n "$TRAVIS_BRANCH" ] && [ "$TRAVIS_BRANCH" != "$VERSION" ] && [ "$TRAVIS_BRANCH" == "master" ]; then
|
||||
if [ -n "$TRAVIS_BRANCH" ] && [ "$TRAVIS_BRANCH" != "$VERSION" ] && [ "$TRAVIS_BRANCH" != "master" ]; then
|
||||
docker push "$DOCKER_REPO:$TRAVIS_BRANCH"
|
||||
fi
|
||||
if [ -n "$TRAVIS_TAG" ] || [ "$CI" == "" ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user