Skip to content

Commit

Permalink
workflow: fix flaky install of operator sdk on mac os (#268)
Browse files Browse the repository at this point in the history
  • Loading branch information
KevFan authored Oct 11, 2023
1 parent a012052 commit f82291d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 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

# GPG can hit "no route for host" if using IPv6 on mac (https://github.com/rvm/rvm/issues/4215#issuecomment-486609350)
if [[ $OS == 'darwin' ]]; then
mkdir -p "/Users/runner/.gnupg"
echo "Disabling ipv6 for gpg on mac"
echo "disable-ipv6" > /Users/runner/.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 f82291d

Please sign in to comment.