mirror of
https://github.com/bplein/factorio-docker.git
synced 2024-11-28 08:58:42 +02:00
CI: Also disable docker push for branches
This commit is contained in:
parent
07264e626f
commit
4c47dbc4ee
8
build.sh
8
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
|
||||
|
Loading…
Reference in New Issue
Block a user