Skip to content

build/bake: support configurable image layer compression - #339

Open
crazy-max wants to merge 1 commit into
docker:mainfrom
crazy-max:output-compression
Open

crazy-max wants to merge 1 commit into
docker:mainfrom
crazy-max:output-compression

Conversation

@crazy-max

@crazy-max crazy-max commented Nov 5, 2026 •

Copy link
Copy Markdown
Member

fixes #207
closes #333

Add compression, compression-level, and force-compression inputs to both workflows so callers can configure image layer compression, including recompressing existing base image layers with zstd. Omitted settings preserve BuildKit's defaults. Compression settings apply only to image output and are ignored for local output.

Use the shared exporter helper from docker/actions-toolkit#1397 to construct the exporter once and share it across the build matrix, replacing duplicated exporter construction.

@crazy-max
crazy-max requested a review from tonistiigi November 5, 2026 14:16
@crazy-max
crazy-max marked this pull request as ready for review November 5, 2026 14:17
@crazy-max
crazy-max requested a review from a team as a code owner November 5, 2026 14:17

@tonistiigi tonistiigi left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

ignored with a warning for local output.

Where would that warning come from?

connection_id: ${{ vars.DOCKERHUB_OIDC_CONNECTIONID }}
scope: 'dhi.io@pull'

build-compression:

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Is there any "expected" conditions for these test, that would fail if things are not working.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@crazy-max

Copy link
Copy Markdown
Member Author

ignored with a warning for local output.

Where would that warning come from?

That was left over from an earlier version. I removed the warning and updated the PR description. Compression settings are ignored for local output.

Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>

This branch has not been deployed

No deployments
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.

Add support for compression settings in bake action

2 participants