allow limit to single arch

This commit is contained in:
John
2022-02-13 16:38:28 +01:00
parent f76dc2d61e
commit 580ab16cef
2 changed files with 15 additions and 2 deletions
+3
View File
@@ -7,6 +7,9 @@ if [[ "$1" == "-h" ]]; then
exit 1
fi
archs=linux/amd64,linux/386,linux/arm/v7,linux/arm64
if [[ -n "$LIMITARCH" ]]; then
archs=$(echo ",$archs," | sed -e "s#.*,\([^,/]*/$LIMITARCH\),.*#\1#")
fi
if [[ -z "$1" ]] || [[ "x$1" == "xrelease" ]]; then
UPLOAD_URL=
elif [[ -z "$UPLOAD_URL" ]]; then