diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2022-09-23 22:00:37 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-23 22:00:37 +0200 |
commit | 40e8bcb8482f2a1f60b93524ceda05770d20739e (patch) | |
tree | 4a6dcc11e2bf7eba044e25c3d2b0500ac4cef0c5 /pkg/bindings | |
parent | 4d475ae87bd67cc94f89d6ed63c0b06ac84315a1 (diff) | |
parent | f5e83f684952d1f97eeb59a3d1c42000be980505 (diff) | |
download | podman-40e8bcb8482f2a1f60b93524ceda05770d20739e.tar.gz podman-40e8bcb8482f2a1f60b93524ceda05770d20739e.tar.bz2 podman-40e8bcb8482f2a1f60b93524ceda05770d20739e.zip |
Merge pull request #15900 from rhatdan/VENDOR
Update vendor of containers(image, common, buildah, storage)
Diffstat (limited to 'pkg/bindings')
-rw-r--r-- | pkg/bindings/images/build.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pkg/bindings/images/build.go b/pkg/bindings/images/build.go index 260d977a8..f8552cddb 100644 --- a/pkg/bindings/images/build.go +++ b/pkg/bindings/images/build.go @@ -233,6 +233,14 @@ func Build(ctx context.Context, containerFiles []string, options entities.BuildO if options.CacheFrom != nil { params.Set("cachefrom", options.CacheFrom.String()) } + + switch options.SkipUnusedStages { + case types.OptionalBoolTrue: + params.Set("skipunusedstages", "1") + case types.OptionalBoolFalse: + params.Set("skipunusedstages", "0") + } + if options.CacheTo != nil { params.Set("cacheto", options.CacheTo.String()) } |