Преглед изворни кода

Readd event

Signed-off-by: Alex Bedo <[email protected]>
Alex Bedo пре 1 година
родитељ
комит
cc09f39f29
1 измењених фајлова са 5 додато и 0 уклоњено
  1. 5 0
      pkg/compose/publish.go

+ 5 - 0
pkg/compose/publish.go

@@ -85,6 +85,11 @@ func (s *composeService) publish(ctx context.Context, project *types.Project, re
 	if !s.dryRun {
 		err = ocipush.PushManifest(ctx, resolver, named, layers, options.OCIVersion)
 		if err != nil {
+			w.Event(progress.Event{
+				ID:     repository,
+				Text:   "publishing",
+				Status: progress.Error,
+			})
 			return err
 		}
 	}