aboutsummaryrefslogtreecommitdiff
path: root/pkg/bindings
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2022-05-04 13:23:33 -0400
committerDaniel J Walsh <dwalsh@redhat.com>2022-05-05 04:41:06 -0400
commited159f864dc8e2cd79d98fb46a28f1413dc1a7fb (patch)
tree612c1c0010014522962866c47bc570d9860770be /pkg/bindings
parentbdaac4b2b6573d0954c58da9968536017160b1ed (diff)
downloadpodman-ed159f864dc8e2cd79d98fb46a28f1413dc1a7fb.tar.gz
podman-ed159f864dc8e2cd79d98fb46a28f1413dc1a7fb.tar.bz2
podman-ed159f864dc8e2cd79d98fb46a28f1413dc1a7fb.zip
Vendor in containers/buildah@v1.26.1
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'pkg/bindings')
-rw-r--r--pkg/bindings/images/build.go10
1 files changed, 10 insertions, 0 deletions
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)
}