Skip to content

Commit 120f3a8

Browse files
committed
bake: ignore profiles in compose definitions
Signed-off-by: CrazyMax <[email protected]>
1 parent bd672ea commit 120f3a8

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

bake/compose.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ func ParseCompose(cfgs []compose.ConfigFile, envs map[string]string) (*Config, e
3737
}, func(options *loader.Options) {
3838
options.SetProjectName("bake", false)
3939
options.SkipNormalization = true
40+
options.Profiles = []string{"*"}
4041
})
4142
if err != nil {
4243
return nil, err

bake/compose_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ services:
3636
- token
3737
- aws
3838
webapp2:
39+
profiles:
40+
- test
3941
build:
4042
context: ./dir
4143
dockerfile_inline: |

0 commit comments

Comments
 (0)