Skip to content

Commit

Permalink
chore: Update Google Cloud authentication to use v2 of google-github-…
Browse files Browse the repository at this point in the history
…actions/auth
  • Loading branch information
carlohcs committed Aug 12, 2024
1 parent 07330b5 commit d1fa32a
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/gc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ jobs:
# service_account: '[email protected]'

# Alternative option - authentication via credentials json
- id: 'auth'
- name: Google Cloud auth
id: 'auth'
uses: 'google-github-actions/auth@v2'
with:
credentials_json: '${{ secrets.GCP_CREDENTIALS }}'
Expand All @@ -76,11 +77,11 @@ jobs:
# echo ${{steps.auth.outputs.access_token}} | docker login -u oauth2accesstoken --password-stdin https://$GAR_LOCATION-docker.pkg.dev

# Get the GKE credentials so we can deploy to the cluster
- name: Set up GKE credentials
uses: google-github-actions/get-gke-credentials@v0
with:
cluster_name: ${{ env.GKE_CLUSTER }}
location: ${{ env.GKE_ZONE }}
# - name: Set up GKE credentials
# uses: google-github-actions/get-gke-credentials@v0
# with:
# cluster_name: ${{ env.GKE_CLUSTER }}
# location: ${{ env.GKE_ZONE }}

# Build the Docker image
- name: Build
Expand Down

0 comments on commit d1fa32a

Please sign in to comment.