Parcourir la source

fix(publish): in `processFile()`, load the compose file passing the `project.Profiles` to the `loader.Options`.

Signed-off-by: Olivier Goulpeau <[email protected]>
Olivier Goulpeau il y a 2 mois
Parent
commit
e7aa484b78
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  1. 1 0
      pkg/compose/publish.go

+ 1 - 0
pkg/compose/publish.go

@@ -221,6 +221,7 @@ func processFile(ctx context.Context, file string, project *types.Project, extFi
 		options.SkipExtends = true
 		options.SkipExtends = true
 		options.SkipConsistencyCheck = true
 		options.SkipConsistencyCheck = true
 		options.ResolvePaths = true
 		options.ResolvePaths = true
+		options.Profiles = project.Profiles
 	})
 	})
 	if err != nil {
 	if err != nil {
 		return nil, err
 		return nil, err