Skip to content

Embed BuildKit inline cache metadata in built images by default - #60

Open
jasoncheng-jora wants to merge 2 commits into
seek-oss:masterfrom
jasoncheng-jora:Embed-BuildKit-inline-cache-metadata-in-built-images-by-default-
Open

jasoncheng-jora wants to merge 2 commits into
seek-oss:masterfrom
jasoncheng-jora:Embed-BuildKit-inline-cache-metadata-in-built-images-by-default-

Conversation

@jasoncheng-jora

@jasoncheng-jora jasoncheng-jora commented Jul 28, 2026 •

Copy link
Copy Markdown
  • Images built by this plugin are meant to be reused as cache sources via --cache-from (e.g. by docker-ecr-publish), but BuildKit's default docker driver can only read inline cache metadata, which the plugin never embedded.
  • Downstream builds pulled the cache image and then re-ran every layer anyway.
  • Changes made:
    • Add --build-arg BUILDKIT_INLINE_CACHE=1 to the image build by default
    • Add a disable-cache-metadata: true opt-out, matching the option name in docker-ecr-publish
    • Document the behaviour in the README, including the additional-build-args: '--build-arg BUILDKIT_INLINE_CACHE=1' workaround for older versions

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.

1 participant