Skip to content

Commit

Permalink
workflow: fix flaky install of operator sdk on mac os
Browse files Browse the repository at this point in the history
  • Loading branch information
KevFan committed Oct 11, 2023
1 parent a012052 commit 3a86fa6
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions utils/install-operator-sdk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,14 @@ if [ ! -f "$1" ]; then
TMP_DIR=$(mktemp -d)
cd $TMP_DIR

if [[ $OS == 'darwin' ]]; then
ls -larth
mkdir -p ".gnupg"
echo "Disabling ipv6 for pgp on mac"
echo "disable-ipv6" > .gnupg/dirmngr.conf
gpgconf --kill all
fi

echo "Downloading $OPERATOR_SDK_DL_BINARY"
curl -sLO $OPERATOR_SDK_DL_BINARY
gpg --keyserver keyserver.ubuntu.com --recv-keys 052996E2A20B5C7E
Expand All @@ -22,6 +30,7 @@ if [ ! -f "$1" ]; then
gpg -u "Operator SDK (release) <[email protected]>" --verify checksums.txt.asc
if [[ $OS == 'darwin' ]]; then
grep operator-sdk_${OS}_${ARCH} checksums.txt | shasum -a 256 -c -
cat .gnupg/dirmngr.conf
else
grep operator-sdk_${OS}_${ARCH} checksums.txt | sha256sum -c -
fi
Expand Down

0 comments on commit 3a86fa6

Please sign in to comment.