Skip to content

Commit

Permalink
fx: pass build args as list in sequence
Browse files Browse the repository at this point in the history
  • Loading branch information
shivanshs9 committed Nov 10, 2024
1 parent b041ed0 commit 83f0f7f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/build-push-gcloud.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ on:
required: false
default: "."
type: string
build_args:
description: "Docker build args"
required: false
default: ""
type: string
outputs:
imageid:
description: "Image ID"
Expand Down Expand Up @@ -70,7 +75,7 @@ jobs:
push: true
labels: |
ci.run_id=${{ github.run_id }}
build-args:
- VITE_GRPC_BACKEND="${{ vars.VITE_GRPC_BACKEND }}"
build-args: |
${{ inputs.build_args }}
tags: |
${{ inputs.registry }}/${{ secrets.GCLOUD_PROJECT }}/${{ inputs.repo }}:${{ steps.vars.outputs.branch }}-${{ steps.vars.outputs.sha_short }}
2 changes: 2 additions & 0 deletions .github/workflows/cd-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,6 @@ jobs:
repo: services/whisper-notes-frontend
dockerfile: frontend.Dockerfile
registry: europe-north1-docker.pkg.dev
build_args: |
- VITE_GRPC_BACKEND="${{ vars.VITE_GRPC_BACKEND }}"
secrets: inherit

0 comments on commit 83f0f7f

Please sign in to comment.