Skip to content
Snippets Groups Projects
Commit 8a3c7277 authored by Pierre Smeyers's avatar Pierre Smeyers
Browse files

fix(gcp): reduce scope of GCP App Default Creds script to template

parent 0705d3cc
Branches
Tags
No related merge requests found
...@@ -56,8 +56,7 @@ variables: ...@@ -56,8 +56,7 @@ variables:
K8S_KUBECTL_IMAGE: $[[ inputs.kubectl-image ]] K8S_KUBECTL_IMAGE: $[[ inputs.kubectl-image ]]
.gcp-provider-auth: .k8s-gcp-adc:
before_script:
- echo "Installing GCP authentication with env GOOGLE_APPLICATION_CREDENTIALS file" - echo "Installing GCP authentication with env GOOGLE_APPLICATION_CREDENTIALS file"
- echo $GCP_JWT > "$CI_BUILDS_DIR/.auth_token.jwt" - echo $GCP_JWT > "$CI_BUILDS_DIR/.auth_token.jwt"
- |- - |-
...@@ -101,7 +100,7 @@ variables: ...@@ -101,7 +100,7 @@ variables:
aud: "$GCP_OIDC_AUD" aud: "$GCP_OIDC_AUD"
before_script: before_script:
- !reference [.k8s-scripts] - !reference [.k8s-scripts]
- !reference [.gcp-provider-auth, before_script] - !reference [.k8s-gcp-adc]
- install_ca_certs "${CUSTOM_CA_CERTS:-$DEFAULT_CA_CERTS}" - install_ca_certs "${CUSTOM_CA_CERTS:-$DEFAULT_CA_CERTS}"
- k8s_login - k8s_login
...@@ -111,6 +110,6 @@ variables: ...@@ -111,6 +110,6 @@ variables:
aud: "$GCP_OIDC_AUD" aud: "$GCP_OIDC_AUD"
before_script: before_script:
- !reference [.k8s-scripts] - !reference [.k8s-scripts]
- !reference [.gcp-provider-auth, before_script] - !reference [.k8s-gcp-adc]
- install_ca_certs "${CUSTOM_CA_CERTS:-$DEFAULT_CA_CERTS}" - install_ca_certs "${CUSTOM_CA_CERTS:-$DEFAULT_CA_CERTS}"
- k8s_login - k8s_login
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment