mirror of
https://github.com/factoriotools/factorio-docker.git
synced 2025-01-12 19:27:11 +01:00
CI: another try to fix tag building
This commit is contained in:
parent
2efa39084f
commit
09e1ad2045
5
build.sh
5
build.sh
@ -36,7 +36,10 @@ fi
|
|||||||
docker build . -t $TAGS
|
docker build . -t $TAGS
|
||||||
docker images
|
docker images
|
||||||
|
|
||||||
if [[ "$(dirname "$(git diff --name-only HEAD^)")" =~ $VERSION_SHORT ]] && [ "$TRAVIS_BRANCH" == "master" ] && [ "$TRAVIS_BRANCH" == "$VERSION" ] && [ "$TRAVIS_PULL_REQUEST_BRANCH" == "" ] || [ "$CI" == "" ]; then
|
if [[ "$(dirname "$(git diff --name-only HEAD^)")" =~ $VERSION_SHORT ]] && [ "$TRAVIS_BRANCH" == "master" ] && [ "$TRAVIS_PULL_REQUEST_BRANCH" == "" ] ||
|
||||||
|
[ "$TRAVIS_BRANCH" == "$VERSION" ] && [ "$TRAVIS_PULL_REQUEST_BRANCH" == "" ] ||
|
||||||
|
[ "$CI" == "" ]; then
|
||||||
|
|
||||||
if [ "$CI" == "true" ]; then
|
if [ "$CI" == "true" ]; then
|
||||||
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
|
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user