From 174f7c8254491d530d90e1d6a3f9c078231c23a8 Mon Sep 17 00:00:00 2001 From: Alexis L Date: Wed, 18 Oct 2023 18:25:12 +0200 Subject: [PATCH] Update build.yml --- .github/workflows/build.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5fa7681f..ad55a338 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -77,10 +77,20 @@ jobs: path: backend/dist - name: Authenticate To Google Cloud + id: auth uses: google-github-actions/auth@v1 with: + token_type: access_token workload_identity_provider: 'projects/799723412304/locations/global/workloadIdentityPools/github-gcr' service_account: 'github-gcr-service-account@magnetic-lore-402317.iam.gserviceaccount.com' + access_token_lifetime: 300s + + - name: Login to Artifact Registry + uses: docker/login-action@v1 + with: + registry: europe-west9-docker.pkg.dev + username: oauth2accesstoken + password: ${{ steps.auth.outputs.access_token }} - name: Build the Docker image working-directory: backend/