1
0
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:
Sandro Jäckel 2019-05-18 13:40:25 +02:00
parent 2efa39084f
commit 09e1ad2045
No known key found for this signature in database
GPG Key ID: 236B6291555E8401

View File

@ -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