build: support for saving local state by build ref

Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
This commit is contained in:
CrazyMax
2023-04-03 11:09:17 +02:00
committed by Tonis Tiigi
parent 672eeed9a6
commit 200058b505
5 changed files with 155 additions and 0 deletions

View File

@ -20,6 +20,7 @@ import (
type Node struct {
store.Node
Builder string
Driver driver.Driver
DriverInfo *driver.Info
Platforms []ocispecs.Platform
@ -63,6 +64,7 @@ func (b *Builder) LoadNodes(ctx context.Context, withData bool) (_ []Node, err e
Node: n,
ProxyConfig: storeutil.GetProxyConfig(b.opts.dockerCli),
Platforms: n.Platforms,
Builder: b.Name,
}
defer func() {
b.nodes[i] = node