summaryrefslogtreecommitdiff
path: root/pkg/bindings
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2022-06-06 14:28:22 +0200
committerGitHub <noreply@github.com>2022-06-06 14:28:22 +0200
commit48a4e6d69019390cc40cbb13b0a83456159d10b6 (patch)
tree4fbd23372f2eb3e4dd8bc66f8abcc37ccdc4214d /pkg/bindings
parentfcf0e167c0da66e31985d768251a1da6ec804a56 (diff)
parent22e442ee25c45d7f12c4d20e8099cda7b4921e2c (diff)
downloadpodman-48a4e6d69019390cc40cbb13b0a83456159d10b6.tar.gz
podman-48a4e6d69019390cc40cbb13b0a83456159d10b6.tar.bz2
podman-48a4e6d69019390cc40cbb13b0a83456159d10b6.zip
Merge pull request #14453 from flouthoc/support-additional-build-context-on-remote
remote: enable support for additional `--build-context` on macOS and remote
Diffstat (limited to 'pkg/bindings')
-rw-r--r--pkg/bindings/images/build.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/pkg/bindings/images/build.go b/pkg/bindings/images/build.go
index b4b7c36f6..fe81dc662 100644
--- a/pkg/bindings/images/build.go
+++ b/pkg/bindings/images/build.go
@@ -81,6 +81,13 @@ func Build(ctx context.Context, containerFiles []string, options entities.BuildO
for _, tag := range options.AdditionalTags {
params.Add("t", tag)
}
+ if additionalBuildContexts := options.AdditionalBuildContexts; len(additionalBuildContexts) > 0 {
+ additionalBuildContextMap, err := jsoniter.Marshal(additionalBuildContexts)
+ if err != nil {
+ return nil, err
+ }
+ params.Set("additionalbuildcontexts", string(additionalBuildContextMap))
+ }
if buildArgs := options.Args; len(buildArgs) > 0 {
bArgs, err := jsoniter.MarshalToString(buildArgs)
if err != nil {