From 8c8652ce72c22b1082a4195c5b91fdbe4452c5f9 Mon Sep 17 00:00:00 2001 From: Nathan Clerkx Date: Wed, 13 Dec 2023 16:53:20 +0100 Subject: [PATCH] improve gcloud login --- .github/workflows/deploy_function.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy_function.yml b/.github/workflows/deploy_function.yml index 8ccb01ddc..89d0b126b 100644 --- a/.github/workflows/deploy_function.yml +++ b/.github/workflows/deploy_function.yml @@ -71,7 +71,7 @@ jobs: # NOTE: Alternative option - authentication via credentials json - name: Google Auth id: auth - uses: "google-github-actions/auth@v0" + uses: "google-github-actions/auth@v2" with: credentials_json: "${{ secrets.GCP_FUNCTION_CREDENTIALS }}" @@ -83,7 +83,7 @@ jobs: uses: "docker/login-action@v1" with: username: "oauth2accesstoken" - password: "${{ steps.auth.outputs.access_token }}" + password: "${{ steps.auth.outputs.auth_token }}" registry: "${{ env.GAR_LOCATION }}-docker.pkg.dev" - name: Build and Push Container