mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-07-09 21:17:09 +08:00
bake: merge cache-from field from compose and x-bake
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
@ -190,7 +190,7 @@ func (t *Target) composeExtTarget(exts map[string]interface{}) error {
|
||||
t.Tags = append(t.Tags, xb.Tags...)
|
||||
}
|
||||
if len(xb.CacheFrom) > 0 {
|
||||
t.CacheFrom = xb.CacheFrom // override main field
|
||||
t.CacheFrom = append(t.CacheFrom, xb.CacheFrom...)
|
||||
}
|
||||
if len(xb.CacheTo) > 0 {
|
||||
t.CacheTo = append(t.CacheTo, xb.CacheTo...)
|
||||
|
Reference in New Issue
Block a user