diff --git a/cmd/executor/cmd/root.go b/cmd/executor/cmd/root.go index 7f0339c5d..5f25093dd 100644 --- a/cmd/executor/cmd/root.go +++ b/cmd/executor/cmd/root.go @@ -454,6 +454,7 @@ func resolveRelativePaths() error { &opts.DigestFile, &opts.ImageNameDigestFile, &opts.ImageNameTagDigestFile, + &opts.OCILayoutPath, } for _, p := range optsPaths { diff --git a/pkg/executor/push.go b/pkg/executor/push.go index 2580e314c..d3e527f65 100644 --- a/pkg/executor/push.go +++ b/pkg/executor/push.go @@ -204,7 +204,7 @@ func DoPush(image v1.Image, opts *config.KanikoOptions) error { return errors.Wrap(err, "appending image") } } - + if opts.NoPush && len(opts.Destinations) == 0 { if opts.TarPath != "" { setDummyDestinations(opts)