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}"