diff options
author | Paul Holzinger <pholzing@redhat.com> | 2022-01-13 14:28:53 +0100 |
---|---|---|
committer | Paul Holzinger <pholzing@redhat.com> | 2022-01-13 15:01:28 +0100 |
commit | 92e7875210d3f6a52b3ef43e8a249022aba5a07c (patch) | |
tree | d5f7e1ad060c6fc2b53e9b040c5650e9b3ec3e5e /pkg/bindings/images | |
parent | b24063582d425e40f68f8fc2a773cf19546e9f94 (diff) | |
download | podman-92e7875210d3f6a52b3ef43e8a249022aba5a07c.tar.gz podman-92e7875210d3f6a52b3ef43e8a249022aba5a07c.tar.bz2 podman-92e7875210d3f6a52b3ef43e8a249022aba5a07c.zip |
podman build enable --all-platforms and --unsetenv
Make sure we add support for allplatforms and unsetenv to both local and
remote podman.
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Diffstat (limited to 'pkg/bindings/images')
-rw-r--r-- | pkg/bindings/images/build.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/pkg/bindings/images/build.go b/pkg/bindings/images/build.go index 7bca43132..6b5159f52 100644 --- a/pkg/bindings/images/build.go +++ b/pkg/bindings/images/build.go @@ -62,6 +62,11 @@ func Build(ctx context.Context, containerFiles []string, options entities.BuildO } params.Set("annotations", l) } + + if options.AllPlatforms { + params.Add("allplatforms", "1") + } + params.Add("t", options.Output) for _, tag := range options.AdditionalTags { params.Add("t", tag) @@ -289,6 +294,11 @@ func Build(ctx context.Context, containerFiles []string, options entities.BuildO } params.Set("ulimits", string(ulimitsJSON)) } + + for _, uenv := range options.UnsetEnvs { + params.Add("unsetenv", uenv) + } + var ( headers map[string]string err error |