Skip to content

Commit

Permalink
Provide support for cache_from and cache_to fields
Browse files Browse the repository at this point in the history
  • Loading branch information
flixman committed Dec 28, 2024
1 parent 75d7be2 commit ea3c8ea
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions podman_compose.py
Original file line number Diff line number Diff line change
Expand Up @@ -2492,6 +2492,10 @@ async def build_one(compose, args, cnt):
"--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)
status = await compose.podman.run([], "build", build_args)
return status
Expand Down

0 comments on commit ea3c8ea

Please sign in to comment.