Skip to content

Commit a3fb701

Browse files
authored
fix(build): add docker_build_args input to build workflow (#194)
* feat(security): add docker_build_args input to pr-security-scan workflow * feat(build): add docker_build_args input to build workflow
1 parent f8f7e99 commit a3fb701

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,11 @@ on:
122122
description: 'Force multi-platform build (amd64+arm64) even for beta/rc tags'
123123
type: boolean
124124
default: false
125+
docker_build_args:
126+
description: 'Newline-separated Docker build arguments to pass to docker build (e.g., "APP_NAME=spi\nCOMPONENT_NAME=api"). Forwarded to docker/build-push-action build-args.'
127+
type: string
128+
required: false
129+
default: ''
125130
build_context_from_working_dir:
126131
description: 'Use the component working_dir as Docker build context instead of build_context. Useful for independent modules (e.g., tools with their own go.mod).'
127132
type: boolean
@@ -297,6 +302,7 @@ jobs:
297302
push: true
298303
tags: ${{ steps.meta.outputs.tags }}
299304
labels: ${{ steps.meta.outputs.labels }}
305+
build-args: ${{ inputs.docker_build_args }}
300306
sbom: generator=docker/scout-sbom-indexer:latest
301307
provenance: mode=max
302308
cache-from: type=gha

0 commit comments

Comments
 (0)