buildkit icon indicating copy to clipboard operation
buildkit copied to clipboard

New gateway exporter

Open jedevc opened this issue 1 month ago • 3 comments

Fixes #3037.

Follow-ups:

  • Secret passing. This PR is already going to be large, and adding support for secrets also intersects with secrets for cache exporter backends, so it's not super trivial to just add on.

jedevc avatar Dec 02 '25 17:12 jedevc

Getting really close now, the only things I need to get done are:

  • Tests :tada:
  • Some refactorings of code that got that little bit more complicated
  • Authoring a real commit history :eyes:

Edit: done! This PR is now ready for review.

jedevc avatar Dec 05 '25 15:12 jedevc

Will it be a breaking change? How can I figure out if a buildkit demon support BuildFromEnvironment or ExportFromEnvironment supported As a gateway frontend?

WYGIN avatar Dec 09 '25 15:12 WYGIN

This will not be a breaking change.

ExportFromEnvironment will only be callable when invoked from --output type=gateway,source=<image>. We should probably add a sanity check that it's running in the right environment though - so that if you try and put a frontend image instead of a exporter image, you get a sane error.

jedevc avatar Dec 09 '25 16:12 jedevc