From cc00c740a48d0bec9b76d17be2d225840501e2d1 Mon Sep 17 00:00:00 2001 From: quangkeu95 Date: Sat, 7 Sep 2024 11:59:39 +0700 Subject: [PATCH] chore: Add docker login step --- .github/workflows/docker-build.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.yml index f147001..30e562d 100644 --- a/.github/workflows/docker-build.yml +++ b/.github/workflows/docker-build.yml @@ -62,6 +62,12 @@ jobs: cluster_name: ${{ secrets.GKE_CLUSTER }} location: ${{ env.GKE_ZONE }} project_id: ${{ secrets.GCLOUD_PROJECT_ID }} + - name: Login to Artifact Registry + uses: docker/login-action@v1 + with: + registry: ${{ env.GCLOUD_ZONE }}-docker.pkg.dev + username: oauth2accesstoken + password: ${{ steps.auth.outputs.access_token }} - name: Build and push uses: docker/build-push-action@v6 with: