Skip to content

Commit

Permalink
Use WIP+SA, update vars.
Browse files Browse the repository at this point in the history
  • Loading branch information
etvt committed Nov 24, 2023
1 parent cc23ae3 commit 9ca4bad
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,13 @@ jobs:
if: github.event_name != 'pull_request'
uses: 'google-github-actions/auth@v1'
with:
credentials_json: '${{ secrets.GOOGLE_CREDENTIALS }}'
# workload_identity_provider: '${{ secrets.WIF_PROVIDER }}'
# service_account: '${{ secrets.WIF_SERVICE_ACCOUNT }}'
workload_identity_provider: '${{ secrets.GC_WIF_PROVIDER }}'
service_account: '${{ secrets.GC_WIF_SERVICE_ACCOUNT }}'

- name: Set up Cloud SDK
uses: 'google-github-actions/setup-gcloud@v1'
with:
project_id: '${{ vars.PROJECT_ID }}'
project_id: '${{ secrets.GC_PROJECT_ID }}'

- name: Docker auth
run: |-
Expand All @@ -64,6 +63,6 @@ jobs:
context: .
file: Dockerfile
push: ${{ github.event_name != 'pull_request' }}
tags: gcr.io/${{ vars.PROJECT_ID }}/aitestdrive:latest
tags: gcr.io/${{ secrets.GC_PROJECT_ID }}/aitestdrive:latest
cache-from: type=gha
cache-to: type=gha,mode=max

0 comments on commit 9ca4bad

Please sign in to comment.