mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-07-10 05:27:07 +08:00
bake: ignore profiles in compose definitions
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
@ -37,6 +37,7 @@ func ParseCompose(cfgs []compose.ConfigFile, envs map[string]string) (*Config, e
|
|||||||
}, func(options *loader.Options) {
|
}, func(options *loader.Options) {
|
||||||
options.SetProjectName("bake", false)
|
options.SetProjectName("bake", false)
|
||||||
options.SkipNormalization = true
|
options.SkipNormalization = true
|
||||||
|
options.Profiles = []string{"*"}
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
@ -36,6 +36,8 @@ services:
|
|||||||
- token
|
- token
|
||||||
- aws
|
- aws
|
||||||
webapp2:
|
webapp2:
|
||||||
|
profiles:
|
||||||
|
- test
|
||||||
build:
|
build:
|
||||||
context: ./dir
|
context: ./dir
|
||||||
dockerfile_inline: |
|
dockerfile_inline: |
|
||||||
|
Reference in New Issue
Block a user