1
0
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:
Sandro Jäckel 2019-10-18 10:50:25 +02:00
parent 8c0ddf99ce
commit e307b1d537
No known key found for this signature in database
GPG Key ID: 3AF5A43A3EECC2E5

View File

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