Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
--no-push and remote caching dont work with each other
  • Loading branch information
Samarth08 authored Apr 22, 2024
1 parent a9062b9 commit 64f0256
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/executor/push.go
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ func pushLayerToCache(opts *config.KanikoOptions, cacheKey string, tarPath strin
}
cacheOpts := *opts
cacheOpts.TarPath = "" // tarPath doesn't make sense for Docker layers
cacheOpts.NoPush = false // we want to push cached layers
cacheOpts.NoPush = opts.NoPush // we don't want to push cached layers if no push is specified
cacheOpts.Destinations = []string{cache}
cacheOpts.InsecureRegistries = opts.InsecureRegistries
cacheOpts.SkipTLSVerifyRegistries = opts.SkipTLSVerifyRegistries
Expand Down

0 comments on commit 64f0256

Please sign in to comment.