diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2022-08-09 13:32:07 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-09 13:32:07 +0000 |
commit | a7af6ef632606fbb3e40e6e3e207ed6e372031c3 (patch) | |
tree | 7fbba48ad8843f698b5a28a9c571b6f79ac0f070 /pkg/bindings | |
parent | 7992d86ab3f69f5c3b4872a4fecbc340579ba78d (diff) | |
parent | 3738221c5201584f570ac01ebf2db96cd17e97d6 (diff) | |
download | podman-a7af6ef632606fbb3e40e6e3e207ed6e372031c3.tar.gz podman-a7af6ef632606fbb3e40e6e3e207ed6e372031c3.tar.bz2 podman-a7af6ef632606fbb3e40e6e3e207ed6e372031c3.zip |
Merge pull request #15246 from TomSweeneyRedHat/dev/tsweeney/buildah1.27.0
Bump to Buildah v1.27.0
Diffstat (limited to 'pkg/bindings')
-rw-r--r-- | pkg/bindings/images/build.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/pkg/bindings/images/build.go b/pkg/bindings/images/build.go index 6883585e2..2615bc516 100644 --- a/pkg/bindings/images/build.go +++ b/pkg/bindings/images/build.go @@ -224,6 +224,15 @@ func Build(ctx context.Context, containerFiles []string, options entities.BuildO if len(options.Manifest) > 0 { params.Set("manifest", options.Manifest) } + if options.CacheFrom != nil { + params.Set("cachefrom", options.CacheFrom.String()) + } + if options.CacheTo != nil { + params.Set("cacheto", options.CacheTo.String()) + } + if int64(options.CacheTTL) != 0 { + params.Set("cachettl", options.CacheTTL.String()) + } if memSwap := options.CommonBuildOpts.MemorySwap; memSwap > 0 { params.Set("memswap", strconv.Itoa(int(memSwap))) } |