From 9bdb79b494e2016f9f0a5cccb059ef84b9c51e4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Tue, 21 May 2019 22:37:26 +0200 Subject: [PATCH] CI: Do not try to push master --- build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 55d2361..2966417 100755 --- a/build.sh +++ b/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" ]; 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