Skip to content

Commit 2968d45

Browse files
authored
Merge pull request containerd#3388 from apostasie/dev-fix-3386-oci-export
Do not load build output if dest is specified
2 parents 286b024 + 5b9cf17 commit 2968d45

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pkg/cmd/builder/build.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,9 @@ func generateBuildctlArgs(ctx context.Context, client *containerd.Client, option
228228
output = fmt.Sprintf("type=local,dest=%s", output)
229229
}
230230
if strings.Contains(output, "type=docker") || strings.Contains(output, "type=oci") {
231-
needsLoading = true
231+
if !strings.Contains(output, "dest=") {
232+
needsLoading = true
233+
}
232234
}
233235
}
234236
if tags = strutil.DedupeStrSlice(options.Tag); len(tags) > 0 {

0 commit comments

Comments
 (0)