Skip to content

Commit

Permalink
[.github/actions/build-image] - feature: add Docker authentication fo…
Browse files Browse the repository at this point in the history
…r Google Cloud Platform (#10913)

- Configure Docker to use GCP credential helper for the specified region to authenticate with GCP's Container Registry
  • Loading branch information
JulesBelveze authored Feb 19, 2025
1 parent 44fc63c commit 8913f83
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/actions/build-image/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ runs:
with:
install_components: "docker-credential-gcr"

- name: "Configure GCP Docker Auth"
shell: bash
run: gcloud auth configure-docker ${{ inputs.region }}-docker.pkg.dev --quiet

- name: "Setup Depot"
uses: "depot/setup-action@v1"

Expand Down

0 comments on commit 8913f83

Please sign in to comment.