allow multiple destinations, error handling for each push

This commit is contained in:
jesusofsuburb1a
2018-05-17 09:35:41 +02:00
parent 7d0466db37
commit 4c190a7037
2 changed files with 29 additions and 21 deletions
+3 -4
View File
@@ -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)
}
},