File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 9292 run : |
9393 gcloud auth activate-service-account --key-file="$GOOGLE_APPLICATION_CREDENTIALS"
9494
95+ - name : Setup kubectl access
96+ run : |
97+ gcloud components install kubectl gke-gcloud-auth-plugin --quiet
98+
9599 - name : Setup Terraform
96100 uses : hashicorp/setup-terraform@633666f66e0061ca3b725c73b2ec20cd13a8fdd1
97101 with :
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ function gcp_auth {
44 # if the GCP_PROJECT_ID is set, activate the service account
55 if [[ -n " ${GCP_PROJECT_ID:- } " && " ${CLUSTER} " != " kind" ]]; then
66 echo " Activating service account"
7- if [ " $CI " -eq 1 ]; then
7+ if [[ " ${CI :- } " == " 1 " || " ${CI :- } " == " true " ] ]; then
88 gcloud auth activate-service-account --key-file=$GOOGLE_APPLICATION_CREDENTIALS
99 fi
1010 gcloud config set project " $GCP_PROJECT_ID "
You can’t perform that action at this time.
0 commit comments