1
0
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:
Sandro Jäckel 2019-05-25 23:49:35 +02:00
parent b3c134d396
commit cbaa20cdea
No known key found for this signature in database
GPG Key ID: 236B6291555E8401

View File

@ -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