diff --git a/pkg/commands/publish.go b/pkg/commands/publish.go index 197d9aa1..5e32a23d 100644 --- a/pkg/commands/publish.go +++ b/pkg/commands/publish.go @@ -15,6 +15,7 @@ package commands import ( + "fmt" "log" "github.com/google/ko/pkg/commands/options" @@ -67,9 +68,13 @@ func addPublish(topLevel *cobra.Command) { if err != nil { log.Fatalf("error creating publisher: %v", err) } - if _, err := publishImages(args, publisher, builder); err != nil { + images, err := publishImages(args, publisher, builder) + if err != nil { log.Fatalf("failed to publish images: %v", err) } + for _, img := range images { + fmt.Println(img) + } }, } options.AddLocalArg(publish, lo)