build: fix preferred platform not taken account

Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
(cherry picked from commit 49b3c0dba5143966f997f2ecd29bc7adc3d95d1a)
This commit is contained in:
CrazyMax 2023-01-27 19:38:54 +01:00 committed by Tonis Tiigi
parent 481796f84f
commit b5ea79e277
No known key found for this signature in database
GPG Key ID: AFA9DE5F8AB7AF39

View File

@ -62,6 +62,7 @@ func (b *Builder) LoadNodes(ctx context.Context, withData bool) (_ []Node, err e
node := Node{ node := Node{
Node: n, Node: n,
ProxyConfig: storeutil.GetProxyConfig(b.opts.dockerCli), ProxyConfig: storeutil.GetProxyConfig(b.opts.dockerCli),
Platforms: n.Platforms,
} }
defer func() { defer func() {
b.nodes[i] = node b.nodes[i] = node