Skip to content

Commit

Permalink
add additional export attributes to force compression when using zstd
Browse files Browse the repository at this point in the history
  • Loading branch information
jipperinbham committed Nov 15, 2024
1 parent 8f0f5e5 commit f7f0276
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/build/imgsrc/depot.go
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,8 @@ func buildImage(ctx context.Context, buildkitClient *client.Client, opts ImageOp

if opts.UseZstd {
exportEntry.Attrs["compression"] = "zstd"
exportEntry.Attrs["compression-level"] = "3"
exportEntry.Attrs["force-compression"] = "true"
}

ch := make(chan *client.SolveStatus)
Expand Down

0 comments on commit f7f0276

Please sign in to comment.