feat: expose build-args input for Docker builds - #544
Open
MykhailoRyzhman wants to merge 1 commit into
Open
MykhailoRyzhman wants to merge 1 commit into
MykhailoRyzhman wants to merge 1 commit into
Conversation
MykhailoRyzhman
requested review from
alexey-ban,
nepalevov and
tataranovich
as code owners
July 8, 2026 20:42
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Applicable issues
Description of changes
Add optional
build-argsinput tobuild_dockerand expose it across reusable workflows that build Docker images.Consumer Dockerfiles may declare
ARGvalues that must be supplied at build time, butbuild_dockercurrently does not forward them todocker/build-push-action.This change adds
build-argsto:actions/build_docker/action.yml— forwarded to bothdocker/build-push-actionsteps (Trivy scan build and push build) so the scanned and published images matchgeneric_docker_pr.yml,generic_docker_release.ymlpython_docker_pr.yml,python_docker_release.ymljava_pr.yml,java_release.ymlnode_pr.yml,node_release.ymlThe input format matches docker/build-push-action
build-args: a newline-separated list ofKEY=VALUEpairs. Default is empty (no build arguments).Example for a reusable workflow consumer:
Example for a custom workflow that calls
build_dockerdirectly:Checklist
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.