Merge pull request #13434 from hakman/go_1.18.0

Install gcloud instead of gsutil
This commit is contained in:
Kubernetes Prow Robot 2022-03-29 01:42:47 -07:00 committed by GitHub
commit 994fd74992
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 5 deletions

View File

@ -19,9 +19,16 @@ set -o nounset
set -o pipefail
if ! command -v gsutil &> /dev/null; then
if ! command -v pip3 &> /dev/null; then
apt update
apt -y install python3-pip
fi
pip3 install gsutil
curl https://dl.google.com/dl/cloudsdk/channels/rapid/google-cloud-sdk.tar.gz -o /tmp/google-cloud-sdk.tar.gz
tar xzf /tmp/google-cloud-sdk.tar.gz -C /
rm /tmp/google-cloud-sdk.tar.gz
/google-cloud-sdk/install.sh \
--bash-completion=false \
--usage-reporting=false \
--quiet
ln -s /google-cloud-sdk/bin/gcloud /usr/local/bin/gcloud
ln -s /google-cloud-sdk/bin/gsutil /usr/local/bin/gsutil
gcloud info
gcloud config list
gcloud auth list
fi