mirror of
https://github.com/factoriotools/factorio-docker.git
synced 2024-12-28 21:08:56 +02: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 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
|
||||
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user