From ed159f864dc8e2cd79d98fb46a28f1413dc1a7fb Mon Sep 17 00:00:00 2001 From: Daniel J Walsh Date: Wed, 4 May 2022 13:23:33 -0400 Subject: Vendor in containers/buildah@v1.26.1 Signed-off-by: Daniel J Walsh --- pkg/bindings/images/build.go | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'pkg/bindings/images') diff --git a/pkg/bindings/images/build.go b/pkg/bindings/images/build.go index 9e0a0d798..51dcd2aa5 100644 --- a/pkg/bindings/images/build.go +++ b/pkg/bindings/images/build.go @@ -216,6 +216,12 @@ func Build(ctx context.Context, containerFiles []string, options entities.BuildO if t := options.Output; len(t) > 0 { params.Set("output", t) } + if t := options.OSVersion; len(t) > 0 { + params.Set("osversion", t) + } + for _, t := range options.OSFeatures { + params.Set("osfeature", t) + } var platform string if len(options.OS) > 0 { platform = options.OS @@ -303,6 +309,10 @@ func Build(ctx context.Context, containerFiles []string, options entities.BuildO params.Set("ulimits", string(ulimitsJSON)) } + for _, env := range options.Envs { + params.Add("setenv", env) + } + for _, uenv := range options.UnsetEnvs { params.Add("unsetenv", uenv) } -- cgit v1.2.3-54-g00ecf