add better tag check
Some checks failed
continuous-integration/drone Build is failing

Signed-off-by: Sam Therapy <sam@samtherapy.net>
This commit is contained in:
Sam Therapy 2022-10-16 16:34:26 +02:00
parent 58ebe4221a
commit 5b106c4af7
Signed by: sam
GPG key ID: 4D8B07C18F31ACBD

View file

@ -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")