mirror of
https://github.com/GoogleContainerTools/kaniko
synced 2026-10-19 00:50:31 +02:00
allow multiple destinations, error handling for each push
This commit is contained in:
@@ -85,10 +85,9 @@ var RootCmd = &cobra.Command{
|
||||
os.Exit(1)
|
||||
}
|
||||
|
||||
for _, destination := range destinations {
|
||||
if err := executor.DoPush(ref, image, destination, tarPath); err != nil {
|
||||
logrus.Error(err)
|
||||
}
|
||||
if err := executor.DoPush(ref, image, destinations, tarPath); err != nil {
|
||||
logrus.Error(err)
|
||||
os.Exit(1)
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user