diff --git a/pkg/executor/push.go b/pkg/executor/push.go index 15909b49b..d3e527f65 100644 --- a/pkg/executor/push.go +++ b/pkg/executor/push.go @@ -205,7 +205,6 @@ func DoPush(image v1.Image, opts *config.KanikoOptions) error { } } - if opts.NoPush && len(opts.Destinations) == 0 { if opts.TarPath != "" { setDummyDestinations(opts)