(ctx context.Context, dockerCli command.Cli, backendOptions *BackendOptions, opts pushOptions, services []string)
| 55 | } |
| 56 | |
| 57 | func runPush(ctx context.Context, dockerCli command.Cli, backendOptions *BackendOptions, opts pushOptions, services []string) error { |
| 58 | backend, err := compose.NewComposeService(dockerCli, backendOptions.Options...) |
| 59 | if err != nil { |
| 60 | return err |
| 61 | } |
| 62 | |
| 63 | project, _, err := opts.ToProject(ctx, dockerCli, backend, services) |
| 64 | if err != nil { |
| 65 | return err |
| 66 | } |
| 67 | |
| 68 | if !opts.IncludeDeps { |
| 69 | project, err = project.WithSelectedServices(services, types.IgnoreDependencies) |
| 70 | if err != nil { |
| 71 | return err |
| 72 | } |
| 73 | } |
| 74 | |
| 75 | return backend.Push(ctx, project, api.PushOptions{ |
| 76 | IgnoreFailures: opts.Ignorefailures, |
| 77 | Quiet: opts.Quiet, |
| 78 | }) |
| 79 | } |
no test coverage detected