Skip to content

Commit ca284a8

Browse files
committed
Fixes
1 parent a9077b7 commit ca284a8

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/workflows/deploy-staging-network.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,10 @@ jobs:
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:

spartan/scripts/gcp_auth.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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"

0 commit comments

Comments
 (0)