Skip to content

bake: pass variables explicitly to buildx - #277

Draft
crazy-max wants to merge 4 commits into
docker:mainfrom
crazy-max:bake-vars
Draft

bake: pass variables explicitly to buildx#277
crazy-max wants to merge 4 commits into
docker:mainfrom
crazy-max:bake-vars

Conversation

@crazy-max

@crazy-max crazy-max commented Aug 13, 2026

Copy link
Copy Markdown
Member

needs #248 (see last commit)

This changes the Bake reusable workflow to pass caller-provided Bake variables through docker/bake-action as explicit vars instead of exporting them into the step environment. Bake environment variable lookup is disabled so workflow and runner env values do not accidentally override Bake variables, while GITHUB_ and RUNNER_ prefixed values are still forwarded explicitly for workflows that intentionally declare them.

Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
@sysia48

This comment was marked as spam.

Disable Bake environment variable lookup so workflow and runner environment
values do not implicitly override Bake variables. Forward only GITHUB_ and RUNNER_
prefixed values as explicit Bake vars, then pass the caller vars input
through docker/bake-action.

Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants