feat: add cluster context support in Compose with x-context extension

This commit is contained in:
Pasha Sviderski committed 2026-03-13 18:37:36 +10:00
1 parent 8ae38cfd57
commit 1525d182b5
8 files changed
+121

No files matched your search

+2
View File
@@ -98,6 +98,8 @@ func runBuild(ctx context.Context, uncli *cli.CLI, opts buildOptions) error {
return fmt.Errorf("load compose file(s): %w", err)
}
uncli.SetClusterContextIfUnset(compose.ClusterContext(project))
servicesToBuild, err := cli.ServicesThatNeedBuild(project, opts.Services, opts.Deps)
if err != nil {
return fmt.Errorf("determine services to build: %w", err)