mirror of
https://github.com/bplein/factorio-docker.git
synced 2024-11-28 08:58:42 +02:00
CI: Add support for comma seperated extra tags
This commit is contained in:
parent
8c0ddf99ce
commit
e307b1d537
8
build.sh
8
build.sh
@ -34,7 +34,10 @@ else
|
||||
fi
|
||||
|
||||
if [[ -n ${EXTRA_TAG:-} ]]; then
|
||||
IFS=","
|
||||
for TAG in $EXTRA_TAG; do
|
||||
TAGS="$TAGS -t $DOCKER_REPO:$EXTRA_TAG"
|
||||
done
|
||||
fi
|
||||
fi
|
||||
|
||||
@ -70,7 +73,10 @@ if [[ $(dirname "$(git diff --name-only HEAD^)") =~ $VERSION_SHORT ]] && [[ $TRA
|
||||
fi
|
||||
|
||||
if [[ -n ${EXTRA_TAG:-} ]]; then
|
||||
docker push "$DOCKER_REPO:$EXTRA_TAG"
|
||||
IFS=","
|
||||
for TAG in $EXTRA_TAG; do
|
||||
docker push "$DOCKER_REPO:$TAG"
|
||||
done
|
||||
fi
|
||||
|
||||
curl -X POST https://hooks.microbadger.com/images/factoriotools/factorio/TmmKGNp8jKcFqZvcJhTCIAJVluw=
|
||||
|
Loading…
Reference in New Issue
Block a user