-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Update Google Cloud authentication to use v2 of google-github-…
…actions/auth
- Loading branch information
Showing
1 changed file
with
7 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 }}' | ||
|
@@ -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 | ||
|