From 02d29e0af595c830b4c2ae0201e2c328cb2329d9 Mon Sep 17 00:00:00 2001 From: Tonis Tiigi Date: Wed, 3 Nov 2021 23:12:00 -0700 Subject: [PATCH] build: fix setting iidfile with multi-node push Signed-off-by: Tonis Tiigi --- build/build.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build/build.go b/build/build.go index 45d82177..11175196 100644 --- a/build/build.go +++ b/build/build.go @@ -732,7 +732,9 @@ func Build(ctx context.Context, drivers []DriverInfo, opt map[string]Options, do return err } if opt.ImageIDFile != "" { - return ioutil.WriteFile(opt.ImageIDFile, []byte(desc.Digest), 0644) + if err := ioutil.WriteFile(opt.ImageIDFile, []byte(desc.Digest), 0644); err != nil { + return err + } } itpush := imagetools.New(imagetools.Opt{