Skip to content

Commit 324f9d0

Browse files
author
Raymond Ottun
committed
ci: auth to google registry
1 parent 4926e92 commit 324f9d0

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/ci.yaml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,13 +104,18 @@ jobs:
104104
with:
105105
ref: 'main'
106106

107-
- name: Authenticate with Google Cloud
107+
- id: auth
108+
name: Authenticate with Google Cloud
108109
uses: google-github-actions/auth@v1
109110
with:
110111
credentials_json: '${{ secrets.GOOGLE_CREDENTIALS }}'
111112

112-
- name: Configure Docker
113-
uses: docker/setup-buildx-action@v1
113+
- name: Login to GCR
114+
uses: docker/login-action@v2
115+
with:
116+
registry: gcr.io
117+
username: oauth2accesstoken
118+
password: ${{ steps.auth.outputs.access_token }}
114119

115120
- name: Build and push Docker image
116121
uses: docker/build-push-action@v2

0 commit comments

Comments
 (0)