From 4c47dbc4ee7778060d81a0c26fe0a387bd64a626 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Mon, 18 May 2020 02:42:55 +0200 Subject: [PATCH] CI: Also disable docker push for branches --- build.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/build.sh b/build.sh index 864070d..9d92c6d 100755 --- a/build.sh +++ b/build.sh @@ -70,9 +70,11 @@ if [[ $(dirname "$(git diff --name-only HEAD^)") =~ $VERSION_SHORT ]] && [[ ${TR fi # push a tag on a branch other than master - if [[ -n ${TRAVIS_BRANCH:-} ]] && [[ $VERSION != "${TRAVIS_BRANCH_VERSION:-}" ]] && [[ ${TRAVIS_BRANCH:-} != "master" ]]; then - docker push "$DOCKER_REPO:$TRAVIS_BRANCH" - fi + # disabled for now cause it breaks Travis CI builds of dependabot + # https://travis-ci.org/github/factoriotools/factorio-docker/jobs/688176474#L182 + # if [[ -n ${TRAVIS_BRANCH:-} ]] && [[ $VERSION != "${TRAVIS_BRANCH_VERSION:-}" ]] && [[ ${TRAVIS_BRANCH:-} != "master" ]]; then + # docker push "$DOCKER_REPO:$TRAVIS_BRANCH" + # fi # push an incremental tag if [[ $VERSION == "${TRAVIS_BRANCH_VERSION:-}" ]]; then