mirror of
https://github.com/factoriotools/factorio-docker.git
synced 2024-12-25 18:38:22 +01:00
CI: simplify logic
This commit is contained in:
parent
4c47dbc4ee
commit
4e261043cd
2
build.sh
2
build.sh
@ -78,7 +78,7 @@ if [[ $(dirname "$(git diff --name-only HEAD^)") =~ $VERSION_SHORT ]] && [[ ${TR
|
|||||||
|
|
||||||
# push an incremental tag
|
# push an incremental tag
|
||||||
if [[ $VERSION == "${TRAVIS_BRANCH_VERSION:-}" ]]; then
|
if [[ $VERSION == "${TRAVIS_BRANCH_VERSION:-}" ]]; then
|
||||||
docker push "$DOCKER_REPO:$TRAVIS_BRANCH"
|
docker push "$DOCKER_REPO:$VERSION"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -n ${TRAVIS_TAG:-} ]] || [[ -z ${CI:-} ]]; then
|
if [[ -n ${TRAVIS_TAG:-} ]] || [[ -z ${CI:-} ]]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user