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:
Zachary Povey
2021-11-25 11:35:10 +00:00
parent ab73275f58
commit ae53101e89
5 changed files with 27 additions and 8 deletions

View File

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