mirror of
https://github.com/GoogleContainerTools/kaniko
synced 2026-10-22 11:04:28 +02:00
fix: CheckPushPermissions not being called when CacheRepo was set (#1471)
This commit is contained in:
@@ -102,7 +102,7 @@ var (
|
||||
// CheckPushPermissions checks that the configured credentials can be used to
|
||||
// push to every specified destination.
|
||||
func CheckPushPermissions(opts *config.KanikoOptions) error {
|
||||
var targets = opts.Destinations
|
||||
targets := opts.Destinations
|
||||
// When no push is set, whe want to check permissions for the cache repo
|
||||
// instead of the destinations
|
||||
if opts.NoPush {
|
||||
|
||||
Reference in New Issue
Block a user