CI: Also disable docker push for branches

This commit is contained in:
Sandro Jäckel 2020-05-18 02:42:55 +02:00
parent 07264e626f
commit 4c47dbc4ee
No known key found for this signature in database
GPG Key ID: 3AF5A43A3EECC2E5

View File

@ -70,9 +70,11 @@ if [[ $(dirname "$(git diff --name-only HEAD^)") =~ $VERSION_SHORT ]] && [[ ${TR
fi fi
# push a tag on a branch other than master # push a tag on a branch other than master
if [[ -n ${TRAVIS_BRANCH:-} ]] && [[ $VERSION != "${TRAVIS_BRANCH_VERSION:-}" ]] && [[ ${TRAVIS_BRANCH:-} != "master" ]]; then # disabled for now cause it breaks Travis CI builds of dependabot
docker push "$DOCKER_REPO:$TRAVIS_BRANCH" # https://travis-ci.org/github/factoriotools/factorio-docker/jobs/688176474#L182
fi # if [[ -n ${TRAVIS_BRANCH:-} ]] && [[ $VERSION != "${TRAVIS_BRANCH_VERSION:-}" ]] && [[ ${TRAVIS_BRANCH:-} != "master" ]]; then
# docker push "$DOCKER_REPO:$TRAVIS_BRANCH"
# fi
# push an incremental tag # push an incremental tag
if [[ $VERSION == "${TRAVIS_BRANCH_VERSION:-}" ]]; then if [[ $VERSION == "${TRAVIS_BRANCH_VERSION:-}" ]]; then