From 053f042897489193313838bf7f75998f79b68b9c Mon Sep 17 00:00:00 2001 From: Joe Doss Date: Fri, 13 Sep 2024 14:10:32 -0500 Subject: [PATCH] Add if statement to skip uploading armhf6 deb due to GCP AR issues. --- scripts/package-upload.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/package-upload.sh b/scripts/package-upload.sh index c34d1d78e..064dc4378 100755 --- a/scripts/package-upload.sh +++ b/scripts/package-upload.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash set -e +set -x FILE="${1}" PACKAGE="${2}" @@ -13,7 +14,11 @@ echo "Release: ${RELEASE}" echo "Location: ${GCLOUD_LOCATION}" if [ "${FILE: -4}" == ".deb" ]; then - gcloud storage cp ${FILE} gs://artifacts-outgoing/${PACKAGE}/deb/${VERSION}/ + if [[ "${FILE}" =~ "armhf6" ]]; then + echo "Skipping ${FILE} due to GCP Artifact Registry armhf conflict!" + else + gcloud storage cp ${FILE} gs://artifacts-outgoing/${PACKAGE}/deb/${VERSION}/ + fi else gcloud storage cp ${FILE} gs://artifacts-outgoing/${PACKAGE}/rpm/${VERSION}/ fi