(ctx context.Context, po PushOptions, services []string)
| 32 | } |
| 33 | |
| 34 | func (c *Composer) Push(ctx context.Context, po PushOptions, services []string) error { |
| 35 | return c.project.ForEachService(services, func(name string, svc *types.ServiceConfig) error { |
| 36 | ps, err := serviceparser.Parse(c.project, *svc) |
| 37 | if err != nil { |
| 38 | return err |
| 39 | } |
| 40 | return c.pushServiceImage(ctx, ps.Image, ps.Unparsed.Platform, ps, po) |
| 41 | }) |
| 42 | } |
| 43 | |
| 44 | func (c *Composer) pushServiceImage(ctx context.Context, image string, platform string, ps *serviceparser.Service, po PushOptions) error { |
| 45 | log.G(ctx).Infof("Pushing image %s", image) |
no test coverage detected