Readd event

Signed-off-by: Alex Bedo <alex98hun@gmail.com>
This commit is contained in:
Alex Bedo 2024-06-07 15:34:51 +02:00 committed by Nicolas De loof
parent 918b508bd5
commit cc09f39f29
1 changed files with 5 additions and 0 deletions

View File

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