1
0
mirror of https://github.com/smallstep/cli.git synced 2025-04-19 10:42:15 +03:00

Add if statement to skip uploading armhf6 deb due to GCP AR issues.

This commit is contained in:
Joe Doss 2024-09-13 14:10:32 -05:00
parent acb623ac2c
commit 053f042897
No known key found for this signature in database
GPG Key ID: 8FC0C35C7D084656

View File

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