From 5b106c4af7239e87de42d922a2e9b11b90dd2d53 Mon Sep 17 00:00:00 2001 From: Sam Therapy Date: Sun, 16 Oct 2022 16:34:26 +0200 Subject: [PATCH] add better tag check Signed-off-by: Sam Therapy --- prepare-pages.sh | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/prepare-pages.sh b/prepare-pages.sh index ecba7c5..97a97c6 100755 --- a/prepare-pages.sh +++ b/prepare-pages.sh @@ -1,18 +1,19 @@ #!/usr/bin/env bash set -e -# drone -if [ -n "$DRONE_TAG" ]; then - TAG=$DRONE_TAG -fi -# woodpecker -if [ -n "$CI_COMMIT_TAG" ]; then - TAG=$CI_COMMIT_TAG -fi - if [ -z "$TAG" ]; then - echo "\$TAG not set, exiting" - exit 1 + # drone + if [ -n "$DRONE_TAG" ]; then + TAG=$DRONE_TAG + fi + # woodpecker + if [ -n "$CI_COMMIT_TAG" ]; then + TAG=$CI_COMMIT_TAG + fi + if [ -z "$TAG" ]; then + echo "\$TAG not set, exiting" + exit 1 + fi fi arches=("amd64" "386" "armv6" "arm64")