Skip to content

Conversation

@tonistiigi
Copy link
Member

@tonistiigi tonistiigi commented Jan 25, 2022

fixes #926

Enable using named contexts in bake targets. The naming is consistent with build args, and --build-context and --build-arg are similar and both take key-value pairts.

Still working on creating contexts from other targets that is a bit complex. That can be a follow-up PR. Added to same PR. Targets can be linked with target: prefix.

Signed-off-by: Tonis Tiigi tonistiigi@gmail.com

@crazy-max crazy-max added this to the v0.8.0 milestone Jan 26, 2022
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
Build context “target:<name>” will take the contents
from another bake target.

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
Copy link
Member

@crazy-max crazy-max left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok I played with your PR yesterday and I must say that's a nice way to handle target dependencies. Will be really useful.

Docs is fine too, thanks for this. Also our reference docs like the bake page starts to be huge. I will create a follow-up to see how we could improve that. We might need something like a cookbook to showcase real-world examples. Will see.

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.

bake: enable named contexts

2 participants