Merge pull request #45692 from vvoland/builder-use-moby-exporter-by-default-24

[backport 24.0] builder-next: Set moby exporter as default
This commit is contained in:
Bjorn Neergaard 2023-06-02 09:22:02 -06:00 committed by GitHub
commit 8e70a1b23e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -355,11 +355,7 @@ func (b *Builder) Build(ctx context.Context, opt backend.BuildConfig) (*builder.
exporterName := ""
exporterAttrs := map[string]string{}
if len(opt.Options.Outputs) == 0 {
if b.useSnapshotter {
exporterName = client.ExporterImage
} else {
exporterName = exporter.Moby
}
} else {
// cacheonly is a special type for triggering skipping all exporters
if opt.Options.Outputs[0].Type != "cacheonly" {