Przeglądaj źródła

Readd event

Signed-off-by: Alex Bedo <[email protected]>
Alex Bedo 1 rok temu
rodzic
commit
cc09f39f29
1 zmienionych plików z 5 dodań i 0 usunięć
  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
 		}
 	}