From 120f3a89184c1ee31c6df60860fde114415b1e31 Mon Sep 17 00:00:00 2001 From: CrazyMax Date: Thu, 22 Jun 2023 17:44:35 +0200 Subject: [PATCH] bake: ignore profiles in compose definitions Signed-off-by: CrazyMax --- bake/compose.go | 1 + bake/compose_test.go | 2 ++ 2 files changed, 3 insertions(+) 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: |