From 0a6e3fa82389d6ab81de80a83e10aec40c4a3e3a Mon Sep 17 00:00:00 2001 From: Tore Sinding Bekkedal Date: Tue, 26 Nov 2024 19:59:24 +0100 Subject: [PATCH] Tester mer i pipeline --- uploadStaticToCdn.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/uploadStaticToCdn.sh b/uploadStaticToCdn.sh index da9fa5c8d..1558a4f11 100644 --- a/uploadStaticToCdn.sh +++ b/uploadStaticToCdn.sh @@ -40,6 +40,8 @@ SA_EMAIL="${PRINCIPAL}@${NAIS_MANAGEMENT_PROJECT_ID}.iam.gserviceaccount.com" # Authenticate with Google Cloud echo "Authenticating with Google Cloud..." +gcloud components install workload-identity-federation + gcloud auth workload-identity-federation login \ --workload-provider="${NAIS_WORKLOAD_IDENTITY_PROVIDER}" \ --service-account-email="${SA_EMAIL}"