Skip to content

Commit 9556d58

Browse files
committed
Add step to log into GAR
1 parent 5f7d979 commit 9556d58

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/build-publish.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,14 @@ jobs:
6060
service_account: artifact-writer@${{ env.GCP_PROJECT_ID }}.iam.gserviceaccount.com
6161
workload_identity_provider: ${{ vars.GCPV2_GITHUB_WORKLOAD_IDENTITY_PROVIDER }}
6262

63+
- name: Login to GAR
64+
uses: docker/login-action@v3
65+
if: github.event_name != 'pull_request'
66+
with:
67+
registry: ${{ env.GAR_LOCATION }}-docker.pkg.dev
68+
username: oauth2accesstoken
69+
password: ${{ steps.gcp_auth.outputs.access_token }}
70+
6371
- name: Login to Docker Hub
6472
if: github.event_name != 'pull_request'
6573
uses: docker/login-action@v3

0 commit comments

Comments
 (0)