From e307b1d53719899b9d3548080a2fd2a27e90bf08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Fri, 18 Oct 2019 10:50:25 +0200 Subject: [PATCH] CI: Add support for comma seperated extra tags --- build.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/build.sh b/build.sh index 449b798..1e00ecb 100755 --- a/build.sh +++ b/build.sh @@ -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=