summaryrefslogtreecommitdiff
path: root/pkg/bindings
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2021-04-03 06:36:51 -0400
committerEd Santiago <santiago@redhat.com>2021-04-07 05:00:16 -0600
commitb68106703e8929c2ba313fd580032ea5bf43ccf2 (patch)
tree59f6794e8b464b49d745a75b6aaca51e946b250d /pkg/bindings
parent68269a0ee11f4683cdd8e36b85a58a1975aeb8e7 (diff)
downloadpodman-b68106703e8929c2ba313fd580032ea5bf43ccf2.tar.gz
podman-b68106703e8929c2ba313fd580032ea5bf43ccf2.tar.bz2
podman-b68106703e8929c2ba313fd580032ea5bf43ccf2.zip
Handle podman-remote --arch, --platform, --os
Podman remote should be able to handle remote specification of arches. Requires: https://github.com/containers/buildah/pull/3116 Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'pkg/bindings')
-rw-r--r--pkg/bindings/images/build.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkg/bindings/images/build.go b/pkg/bindings/images/build.go
index c47a16551..34d6cee05 100644
--- a/pkg/bindings/images/build.go
+++ b/pkg/bindings/images/build.go
@@ -12,6 +12,7 @@ import (
"os"
"path/filepath"
"regexp"
+ "runtime"
"strconv"
"strings"
@@ -190,6 +191,10 @@ func Build(ctx context.Context, containerFiles []string, options entities.BuildO
platform = "linux"
}
platform += "/" + options.Architecture
+ } else {
+ if len(platform) > 0 {
+ platform += "/" + runtime.GOARCH
+ }
}
if len(platform) > 0 {
params.Set("platform", platform)