From 5ccf4d7406b46958405b6a95a97884400e123a53 Mon Sep 17 00:00:00 2001 From: Cory Bennett Date: Fri, 17 May 2024 08:40:54 -0700 Subject: [PATCH] os/arch now required by buildkit on image spec Related buildkit change: https://github.com/moby/buildkit/pull/4601 --- codegen/builtin_fs.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/codegen/builtin_fs.go b/codegen/builtin_fs.go index 7834130..ed2a545 100644 --- a/codegen/builtin_fs.go +++ b/codegen/builtin_fs.go @@ -761,6 +761,13 @@ func (dp DockerPush) Call(ctx context.Context, cln *client.Client, val Value, op } exportFS.Image.ContainerConfig.Labels = exportFS.Image.Config.Labels + if exportFS.Image.OS == "" { + exportFS.Image.OS = exportFS.Platform.OS + } + if exportFS.Image.Architecture == "" { + exportFS.Image.Architecture = exportFS.Platform.Architecture + } + var dgst string exportFS.SolveOpts = append(exportFS.SolveOpts, solver.WithImageSpec(exportFS.Image),