Skip to content

Commit

Permalink
improve gcloud login
Browse files Browse the repository at this point in the history
  • Loading branch information
N-Clerkx committed Dec 13, 2023
1 parent 3ce3c8b commit 8c8652c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy_function.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"

Expand All @@ -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
Expand Down

0 comments on commit 8c8652c

Please sign in to comment.