mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-07-13 06:57:09 +08:00
Add NetworkMode to bake target
Allows specification of network mode in a bake target. Fixes #848 Signed-off-by: Zachary Povey <zachary.povey@autotrader.co.uk>
This commit is contained in:
@ -79,7 +79,8 @@ func ParseCompose(dt []byte) (*Config, error) {
|
||||
val, ok := cfg.Environment[val]
|
||||
return val, ok
|
||||
})),
|
||||
CacheFrom: s.Build.CacheFrom,
|
||||
CacheFrom: s.Build.CacheFrom,
|
||||
NetworkMode: &s.Build.Network,
|
||||
}
|
||||
if err = t.composeExtTarget(s.Build.Extensions); err != nil {
|
||||
return nil, err
|
||||
|
Reference in New Issue
Block a user