Skip to content

Commit

Permalink
chore(ci): fix gcloud gke auth (#4161)
Browse files Browse the repository at this point in the history
* chore(ci): fix gcloud gke auth

* chore(ci): fix gcloud gke auth for windows
  • Loading branch information
Walther authored May 3, 2023
1 parent 160a2d7 commit 268ff76
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,8 @@ commands:
- run:
name: Configure kubectl context via gcloud and authenticate to Google Container Registry
command: |
export USE_GKE_GCLOUD_AUTH_PLUGIN=True
echo "export USE_GKE_GCLOUD_AUTH_PLUGIN=True" >> $BASH_ENV
export GOOGLE_APPLICATION_CREDENTIALS=$HOME/gcloud-key.json
echo "export GOOGLE_APPLICATION_CREDENTIALS=$GOOGLE_APPLICATION_CREDENTIALS" >> $BASH_ENV
echo $GCLOUD_SERVICE_KEY > $GOOGLE_APPLICATION_CREDENTIALS
Expand Down Expand Up @@ -766,6 +768,7 @@ jobs:
choco upgrade --limit-output --no-progress -y git rsync gcloudsdk kubernetes-cli
$Env:CLOUDSDK_PYTHON = gcloud components copy-bundled-python
gcloud components install gke-gcloud-auth-plugin --quiet
$Env:USE_GKE_GCLOUD_AUTH_PLUGIN = True
refreshenv
- run:
name: Write gcloud credentials to file
Expand Down

0 comments on commit 268ff76

Please sign in to comment.