mirror of
https://github.com/containers/podman-compose.git
synced 2025-08-18 17:38:34 +02:00
Provide support for cache_from and cache_to fields
Signed-off-by: Felix Rubio <felix@kngnt.org>
This commit is contained in:
committed by
Povilas Kanapickas
parent
0e3b372a29
commit
804852b218
@@ -2519,6 +2519,10 @@ def container_to_build_args(compose, cnt, args, path_exists):
|
||||
"--build-arg",
|
||||
build_arg,
|
||||
))
|
||||
for cache_img in build_desc.get("cache_from", []):
|
||||
build_args.extend(["--cache-from", cache_img])
|
||||
for cache_img in build_desc.get("cache_to", []):
|
||||
build_args.extend(["--cache-to", cache_img])
|
||||
build_args.append(ctx)
|
||||
return build_args
|
||||
|
||||
|
Reference in New Issue
Block a user