Skip to content

Commit

Permalink
Add step to log into GAR
Browse files Browse the repository at this point in the history
  • Loading branch information
grahamalama committed Dec 5, 2024
1 parent 5f7d979 commit 9556d58
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/build-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,14 @@ jobs:
service_account: artifact-writer@${{ env.GCP_PROJECT_ID }}.iam.gserviceaccount.com
workload_identity_provider: ${{ vars.GCPV2_GITHUB_WORKLOAD_IDENTITY_PROVIDER }}

- name: Login to GAR
uses: docker/#-action@v3
if: github.event_name != 'pull_request'
with:
registry: ${{ env.GAR_LOCATION }}-docker.pkg.dev
username: oauth2accesstoken
password: ${{ steps.gcp_auth.outputs.access_token }}

- name: Login to Docker Hub
if: github.event_name != 'pull_request'
uses: docker/#-action@v3
Expand Down

0 comments on commit 9556d58

Please # to comment.