mirror of
https://github.com/moby/buildkit.git
synced 2026-08-04 14:50:21 +00:00
provenance: allow builder ID to set with attrs
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
This commit is contained in:
@@ -77,6 +77,8 @@ func ProvenanceProcessor(attrs map[string]string) llbsolver.Processor {
|
||||
pr.Metadata.Reproducible = reproducible
|
||||
pr.Metadata.BuildInvocationID = buildID
|
||||
|
||||
pr.Builder.ID = attrs["builder-id"]
|
||||
|
||||
var addLayers func() error
|
||||
|
||||
switch mode {
|
||||
@@ -162,7 +164,6 @@ func ProvenanceProcessor(attrs map[string]string) llbsolver.Processor {
|
||||
}
|
||||
}
|
||||
|
||||
// TODO: pass indent to json.Marshal
|
||||
return json.MarshalIndent(pr, "", " ")
|
||||
},
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user