Skip to content

Commit f3cf90b

Browse files
committed
fix: Update Docker authentication method to use gcloud as a credential helper
1 parent 01567f1 commit f3cf90b

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

.github/workflows/google-cloudrun-docker.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,14 @@ jobs:
3737
workload_identity_provider: '${{ env.WORKLOAD_IDENTITY_PROVIDER }}'
3838
service_account: 'github-actions@gen-lang-client-0698668474.iam.gserviceaccount.com'
3939

40-
# BEGIN - Docker auth and build
41-
- name: 'Docker Auth'
42-
uses: 'docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567' # docker/login-action@v3
43-
with:
44-
username: 'oauth2accesstoken'
45-
password: '${{ steps.auth.outputs.auth_token }}'
46-
registry: 'gcr.io'
40+
# Set up Cloud SDK
41+
- name: 'Set up Cloud SDK'
42+
uses: 'google-github-actions/setup-gcloud@98ddc00a17442e89a24bbf282954a3b65ce6d200' # google-github-actions/setup-gcloud@v2
43+
44+
# Configure Docker to use gcloud as a credential helper
45+
- name: 'Configure Docker for GCR'
46+
run: |-
47+
gcloud auth configure-docker --quiet
4748
4849
# Build and Push Backend Container
4950
- name: 'Build and Push Backend Container'

0 commit comments

Comments
 (0)