From 3b22061687ae73fdf6fc9ac7b795b95433230672 Mon Sep 17 00:00:00 2001 From: Joshua Ji Date: Sun, 7 Jan 2024 04:16:05 +0000 Subject: [PATCH] change GAR login again --- .github/workflows/_deployment.yml | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/.github/workflows/_deployment.yml b/.github/workflows/_deployment.yml index a62c9fd..fc3ee37 100644 --- a/.github/workflows/_deployment.yml +++ b/.github/workflows/_deployment.yml @@ -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/login-action/tree/v3?tab=readme-ov-file#google-artifact-registry-gar - - name: Login to Google Artifacts Registry + # https://github.com/docker/login-action/tree/v3?tab=readme-ov-file#service-account-based-authentication-1 + - name: Login to GAR uses: docker/login-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