aboutsummaryrefslogtreecommitdiff
path: root/pkg/bindings
diff options
context:
space:
mode:
authorEd Santiago <santiago@redhat.com>2022-09-09 07:49:19 -0600
committerDaniel J Walsh <dwalsh@redhat.com>2022-09-23 14:13:12 -0400
commitf5e83f684952d1f97eeb59a3d1c42000be980505 (patch)
tree8a1c91bfc6af82403e1d22bfdf9dcfb2419ac82a /pkg/bindings
parent54653ceebeabaf30e89d69e0f5aa5de431cc6bd7 (diff)
downloadpodman-f5e83f684952d1f97eeb59a3d1c42000be980505.tar.gz
podman-f5e83f684952d1f97eeb59a3d1c42000be980505.tar.bz2
podman-f5e83f684952d1f97eeb59a3d1c42000be980505.zip
Fixup Buildah merge
Changes since 2022-09-09: - man page: add --skip-unused-stages (buildah 4249) - man page: bring in new Note for --cache-ttl (4248) - system tests: de-stutter (4205) - (internal): in skip() applier: escape asterisk, otherwise the "bud with --dns* flags" sed expression never applies. Signed-off-by: Ed Santiago <santiago@redhat.com> Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'pkg/bindings')
-rw-r--r--pkg/bindings/images/build.go8
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())
}