瀏覽代碼

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
 		}
 	}