Skip to content

Commit

Permalink
change GAR login again
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuanianji committed Jan 7, 2024
1 parent b8bcfe6 commit 3b22061
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions .github/workflows/_deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,13 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Google Auth
id: auth
uses: google-github-actions/auth@v2
with:
credentials_json: ${{ secrets.SERVICE_ACCOUNT_KEY_JSON }}

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

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

0 comments on commit 3b22061

Please # to comment.