bake: ignore profiles in compose definitions

Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
(cherry picked from commit 120f3a89184c1ee31c6df60860fde114415b1e31)
This commit is contained in:
CrazyMax 2023-06-22 17:44:35 +02:00 committed by Justin Chadwell
parent cb4fea66e0
commit afcb118e10
2 changed files with 3 additions and 0 deletions

View File

@ -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

View File

@ -36,6 +36,8 @@ services:
- token
- aws
webapp2:
profiles:
- test
build:
context: ./dir
dockerfile_inline: |