Skip to content

Commit

Permalink
Merge pull request #1277 from smallstep/jdoss/Filter_armhf6_deb
Browse files Browse the repository at this point in the history
Skip uploading armhf6 deb
  • Loading branch information
jdoss authored Sep 13, 2024
2 parents acb623a + 053f042 commit 88d6a6f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion scripts/package-upload.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/env bash

set -e
set -x

FILE="${1}"
PACKAGE="${2}"
Expand All @@ -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

0 comments on commit 88d6a6f

Please sign in to comment.