Skip to content

Commit

Permalink
Test yet again
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuanianji committed Jan 7, 2024
1 parent 20db52d commit db99622
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions .github/workflows/_deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,22 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Google Auth
id: auth
uses: 'google-github-actions/auth@v0'
with:
token_format: 'access_token'
workload_identity_provider: '${{ secrets.WIF_PROVIDER }}'
service_account: '${{ secrets.WIF_SERVICE_ACCOUNT }}'

# https://github.com/docker/#-action/tree/v3?tab=readme-ov-file#service-account-based-authentication-1
- name: Login to GAR
uses: docker/#-action@v2
- name: Log ingo Google Artifact Registry
id: docker-auth
uses: 'docker/#-action@v1'
with:
registry: ${{ vars.REGION }}-docker.pkg.dev
username: _json_key
password: ${{ secrets.SERVICE_ACCOUNT_KEY_JSON }}
username: 'oauth2accesstoken'
password: '${{ steps.auth.outputs.access_token }}'
registry: '${{ vars.REGION }}-docker.pkg.dev'

- name: Build, tag and push container
id: build-image
Expand Down

0 comments on commit db99622

Please # to comment.