mirror of
https://github.com/GoogleContainerTools/kaniko
synced 2026-10-19 20:29:50 +02:00
fix: CheckPushPermissions not being called when CacheRepo was set (#1471)
This commit is contained in:
@@ -95,7 +95,7 @@ var RootCmd = &cobra.Command{
|
||||
}
|
||||
logrus.Warn("kaniko is being run outside of a container. This can have dangerous effects on your system")
|
||||
}
|
||||
if !opts.NoPush {
|
||||
if !opts.NoPush || opts.CacheRepo != "" {
|
||||
if err := executor.CheckPushPermissions(opts); err != nil {
|
||||
exit(errors.Wrap(err, "error checking push permissions -- make sure you entered the correct tag name, and that you are authenticated correctly, and try again"))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user