Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mario8705 authored Oct 18, 2023
1 parent fb6b05e commit 174f7c8
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down

0 comments on commit 174f7c8

Please sign in to comment.