diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-04-07 10:03:43 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-07 10:03:43 -0400 |
commit | f44645aad6822aee27c241f2f0f43bdbc652dc0a (patch) | |
tree | dc9e06d86e4fefcea8a8d3d653b9ec9a74b0232c /pkg/bindings/images/build.go | |
parent | 0e67053b9a26f20e5ccbffdcc5e7a84254ca16b8 (diff) | |
parent | 48b4b665b1c0c3ebab8007e0c39bb3aab6f3c414 (diff) | |
download | podman-f44645aad6822aee27c241f2f0f43bdbc652dc0a.tar.gz podman-f44645aad6822aee27c241f2f0f43bdbc652dc0a.tar.bz2 podman-f44645aad6822aee27c241f2f0f43bdbc652dc0a.zip |
Merge pull request #9962 from edsantiago/podman_remote_arch
Handle podman-remote --arch, --platform, --os
Diffstat (limited to 'pkg/bindings/images/build.go')
-rw-r--r-- | pkg/bindings/images/build.go | 5 |
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) |