Skip to content

Conversation

@ross-p-smith
Copy link

@ross-p-smith ross-p-smith commented Jan 29, 2026

Fixes #1134

Implement support for the BUILDKIT_INLINE_CACHE build argument when the buildx cache is not set to inline. This change enhances the container build process by ensuring the inline cache is utilized appropriately.

BUILDKIT_INLINE_CACHE was not being set when using

"image": "mcr.myimage"

It also conflicts if you define cacheTo: type=inline

@ross-p-smith ross-p-smith requested a review from a team as a code owner January 29, 2026 22:25
Copy link
Contributor

@chrmarti chrmarti left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@stuartleeks
Copy link
Collaborator

This is great - I've had various cases where https://github.com/devcontainers/ci/ didn't seem to be caching and I think they would fall into the case that this PR addresses <3

@ross-p-smith
Copy link
Author

@chrmarti - I dont have permissions to merge - would you be able to?

Copy link
Contributor

@abdurriq abdurriq left a comment

Choose a reason for hiding this comment

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

Changes LGTM, but I think tests would help here. Could you please add some tests (unit, at least) to verify the behaviour?

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.

BUILDKIT_INLINE_CACHE not added to docker buildx build command for Image-Based builds

4 participants