mirror of
https://github.com/containers/podman-compose.git
synced 2025-08-23 03:20:34 +02:00
Merge pull request #1058 from banditopazzo/705-ssh-key-support-in-build
feat: add support for ssh property in the build command
This commit is contained in:
@@ -2403,6 +2403,8 @@ async def build_one(compose, args, cnt):
|
||||
build_args.extend([f"--build-context={additional_ctx}"])
|
||||
if "target" in build_desc:
|
||||
build_args.extend(["--target", build_desc["target"]])
|
||||
for agent_or_key in norm_as_list(build_desc.get("ssh", {})):
|
||||
build_args.extend(["--ssh", agent_or_key])
|
||||
container_to_ulimit_build_args(cnt, build_args)
|
||||
if getattr(args, "no_cache", None):
|
||||
build_args.append("--no-cache")
|
||||
|
Reference in New Issue
Block a user