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

View File

@ -34,7 +34,10 @@ else
fi
if [[ -n ${EXTRA_TAG:-} ]]; then
TAGS="$TAGS -t $DOCKER_REPO:$EXTRA_TAG"
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=