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 772e166
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions utils/install-operator-sdk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@ if [ ! -f "$1" ]; then
TMP_DIR=$(mktemp -d)
cd $TMP_DIR

if [[ $OS == 'darwin' ]]; then
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 Down

0 comments on commit 772e166

Please sign in to comment.