From 14acff1f1ef8faf0b93e11598757206f04d9bfc5 Mon Sep 17 00:00:00 2001 From: Bharath KKB Date: Mon, 14 Dec 2020 18:38:42 -0600 Subject: [PATCH 1/3] fix: switch to new google actions org --- ci/google.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/google.yml b/ci/google.yml index b9313b2..3d7f9f5 100644 --- a/ci/google.yml +++ b/ci/google.yml @@ -33,7 +33,7 @@ jobs: uses: actions/checkout@v2 # Setup gcloud CLI - - uses: GoogleCloudPlatform/github-actions/setup-gcloud@0.1.3 + - uses: google-github-actions/setup-gcloud@v0.2.0 with: service_account_key: ${{ secrets.GKE_SA_KEY }} project_id: ${{ secrets.GKE_PROJECT }} From c5e7bc70b545461c00a7e17980d939e3dd81cbca Mon Sep 17 00:00:00 2001 From: Bharath KKB Date: Mon, 14 Dec 2020 18:49:58 -0600 Subject: [PATCH 2/3] use GKE action for credentials --- ci/google.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/ci/google.yml b/ci/google.yml index 3d7f9f5..0a53cfd 100644 --- a/ci/google.yml +++ b/ci/google.yml @@ -8,7 +8,7 @@ # # 3. Change the values for the GKE_ZONE, GKE_CLUSTER, IMAGE, and DEPLOYMENT_NAME environment variables (below). # -# For more support on how to run the workflow, please visit https://github.com/GoogleCloudPlatform/github-actions/tree/master/example-workflows/gke +# For more support on how to run the workflow, please visit https://github.com/google-github-actions/setup-gcloud/tree/master/example-workflows/gke name: Build and Deploy to GKE @@ -44,8 +44,11 @@ jobs: gcloud --quiet auth configure-docker # Get the GKE credentials so we can deploy to the cluster - - run: |- - gcloud container clusters get-credentials "$GKE_CLUSTER" --zone "$GKE_ZONE" + - uses: google-github-actions/get-gke-credentials@v0.2.1 + with: + cluster_name: ${{ secrets.GKE_PROJECT }} + location: ${{ env.GKE_ZONE }} + credentials: ${{ secrets.GKE_SA_KEY }} # Build the Docker image - name: Build From ab930e94bfd8f9196962625bf69b8c406bae15c1 Mon Sep 17 00:00:00 2001 From: Bharath KKB Date: Mon, 14 Dec 2020 18:59:18 -0600 Subject: [PATCH 3/3] fix cluster var --- ci/google.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/google.yml b/ci/google.yml index 0a53cfd..cc3cffb 100644 --- a/ci/google.yml +++ b/ci/google.yml @@ -46,7 +46,7 @@ jobs: # Get the GKE credentials so we can deploy to the cluster - uses: google-github-actions/get-gke-credentials@v0.2.1 with: - cluster_name: ${{ secrets.GKE_PROJECT }} + cluster_name: ${{ env.GKE_CLUSTER }} location: ${{ env.GKE_ZONE }} credentials: ${{ secrets.GKE_SA_KEY }}