mirror of
https://github.com/factoriotools/factorio-docker.git
synced 2025-01-24 08:44:44 +01:00
CI: Fix version detection of which image to push, actually push the image
This commit is contained in:
parent
b2a4195e13
commit
9d2c38df65
5
build.sh
5
build.sh
@ -29,9 +29,8 @@ fi
|
||||
docker build . -t $DOCKER_REPO:$TAG
|
||||
|
||||
docker images
|
||||
|
||||
if [ "$(dirname "$(git diff --name-only HEAD^)" | head -1)" == "$VERSION" ] && [ "$TRAVIS_BRANCH" == "master" ]; then
|
||||
# echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
|
||||
if [[ "$(dirname "$(git diff --name-only HEAD^)" | head -1)" =~ $VERSION ]] && [ "$TRAVIS_BRANCH" == "master" ]; then
|
||||
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
|
||||
docker push "$DOCKER_REPO:latest"
|
||||
|
||||
if [ -n "$EXTRA_TAG" ]; then
|
||||
|
Loading…
x
Reference in New Issue
Block a user