Skip to content

Commit

Permalink
authorize docker
Browse files Browse the repository at this point in the history
  • Loading branch information
nialexsan committed Jan 4, 2024
1 parent bf5d475 commit aa1d6c3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ env:
PROJECT_ID: ${{ vars.GCP_PROJECT_ID }}
SERVICE_ACCOUNT: ${{ vars.GCP_SERVICE_ACCOUNT }}
WORKLOAD_IDENTITY_PROVIDER: ${{ vars.GCP_WORKLOAD_IDENTITY_PROVIDER }}
GAR_LOCATION: ${{ vars.GCP_GAR_LOCATION }}

jobs:
deploy:
Expand All @@ -34,6 +35,7 @@ jobs:

- name: Docker Auth
run: |-
gcloud auth configure-docker ${{ env.GAR_LOCATION }}-docker.pkg.dev
docker build -t ${{ env.DOCKER_IMAGE_URL }} --file Dockerfile .
docker push ${{ env.DOCKER_IMAGE_URL }}
Expand Down

0 comments on commit aa1d6c3

Please sign in to comment.