Browse Source

skip push step for provider services

Signed-off-by: Guillaume Lours <[email protected]>
Guillaume Lours 6 months ago
parent
commit
91a0aa0265
1 changed files with 1 additions and 1 deletions
  1. 1 1
      pkg/compose/push.go

+ 1 - 1
pkg/compose/push.go

@@ -62,7 +62,7 @@ func (s *composeService) push(ctx context.Context, project *types.Project, optio
 	w := progress.ContextWriter(ctx)
 	for _, service := range project.Services {
 		if service.Build == nil || service.Image == "" {
-			if options.ImageMandatory && service.Image == "" {
+			if options.ImageMandatory && service.Image == "" && service.Provider == nil {
 				return fmt.Errorf("%q attribute is mandatory to push an image for service %q", "service.image", service.Name)
 			}
 			w.Event(progress.Event{