WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Conversation

@crazy-max
Copy link
Member

@crazy-max crazy-max commented Dec 5, 2025

This PR introduces a new context input that replaces both workdir and source inputs. It resolves long-standing confusion around how bake-action determines what directory or Git reference to use when running bake.

The workdir input was originally added in #76 to support running Bake from a subdirectory inside the GitHub workspace.

Later, Git context support was added in #181 introducing a new source input. This created overlap and ambiguity between:

  • workdir (local path inside workspace)
  • source (Git context but can be skipped with .)

This duality has consistently caused confusion for users, as highlighted in multiple issues and discussions. Users also pointed out that naming was inconsistent with build-push-action, where the input is called context.

This unified context input aligns with build-push-action. If a local dir is detected it will use it as working directory to run Bake otherwise it will use the Git context like it does for build-push-action.

cc @ModerNews @polarathene @Clashsoft

@crazy-max crazy-max added this to the v7 milestone Dec 5, 2025
@crazy-max crazy-max requested a review from tonistiigi December 5, 2025 15:43
@crazy-max crazy-max force-pushed the context-input branch 2 times, most recently from 6242112 to 93a5634 Compare December 5, 2025 15:44
@crazy-max crazy-max marked this pull request as ready for review December 5, 2025 15:59
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.

Uncertain behavior of local source Bad context on version 6.x.x Workdir does not work or is not documented properly

1 participant