Skip to content

Commit 3e04e4e

Browse files
committed
use GOOGLE_APPLICATION_CREDENTIALS
1 parent 478bc08 commit 3e04e4e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

.github/workflows/terraform-tests.yml

+2-4
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ jobs:
3131
JUPYTERHUB_TLS_KEY: ${{ secrets.JUPYTERHUB_TLS_KEY }}
3232
- name: Authorize service account
3333
run: |
34-
gcloud auth activate-service-account ${{ secrets.GCP_PF_SA }} --key-file=/tmp/credentials.json
3534
kubectl config view
3635
ls -la /tmp
3736
- name: Run Terraform Test
@@ -47,7 +46,7 @@ jobs:
4746
INFOBLOX_SERVER: ${{ secrets.INFOBLOX_JHUB_HOST }}
4847
TF_VAR_site_certificate_file: /tmp/tls.cer
4948
TF_VAR_site_certificate_key_file: /tmp/tls.key
50-
USE_GKE_GCLOUD_AUTH_PLUGIN: true
49+
GOOGLE_APPLICAITON_CREDENTIALS: /tmp/credentials.json
5150

5251
test-sample-jhub-nfs:
5352
if: ${{ !contains(github.event.head_commit.message, '[skip ci]') && contains(github.event.head_commit.message, '[test nfs]') }}
@@ -73,7 +72,6 @@ jobs:
7372
JUPYTERHUB_TLS_KEY: ${{ secrets.JUPYTERHUB_TLS_KEY }}
7473
- name: Authorize service account
7574
run: |
76-
gcloud auth activate-service-account ${{ secrets.GCP_PF_SA }} --key-file=/tmp/credentials.json
7775
kubectl config view
7876
ls -la /tmp
7977
- name: Run Terraform Test
@@ -89,4 +87,4 @@ jobs:
8987
INFOBLOX_SERVER: ${{ secrets.INFOBLOX_JHUB_HOST }}
9088
TF_VAR_site_certificate_file: /tmp/tls.cer
9189
TF_VAR_site_certificate_key_file: /tmp/tls.key
92-
USE_GKE_GCLOUD_AUTH_PLUGIN: true
90+
GOOGLE_APPLICAITON_CREDENTIALS: /tmp/credentials.json

0 commit comments

Comments
 (0)