diff --git a/bake/compose.go b/bake/compose.go index 457fe2c1..6d207eda 100644 --- a/bake/compose.go +++ b/bake/compose.go @@ -37,6 +37,7 @@ func ParseCompose(cfgs []compose.ConfigFile, envs map[string]string) (*Config, e }, func(options *loader.Options) { options.SetProjectName("bake", false) options.SkipNormalization = true + options.Profiles = []string{"*"} }) if err != nil { return nil, err diff --git a/bake/compose_test.go b/bake/compose_test.go index 5074248b..b5f9961b 100644 --- a/bake/compose_test.go +++ b/bake/compose_test.go @@ -36,6 +36,8 @@ services: - token - aws webapp2: + profiles: + - test build: context: ./dir dockerfile_inline: |