From 456370bd46f399bf1702b82ae6720e49c50350f9 Mon Sep 17 00:00:00 2001 From: Excedrin <290525+Excedrin@users.noreply.github.com> Date: Tue, 14 Mar 2023 22:49:39 -0700 Subject: [PATCH] Support build secrets Signed-off-by: Excedrin <290525+Excedrin@users.noreply.github.com> --- podman_compose.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/podman_compose.py b/podman_compose.py index 39b2019..f23e609 100755 --- a/podman_compose.py +++ b/podman_compose.py @@ -1931,6 +1931,8 @@ def build_one(compose, args, cnt): if not os.path.exists(dockerfile): raise OSError("Dockerfile not found in " + ctx) build_args = ["-f", dockerfile, "-t", cnt["image"]] + for secret in build_desc.get("secrets", []): + build_args.extend(get_secret_args(compose, cnt, secret)) for tag in build_desc.get("tags", []): build_args.extend(["-t", tag]) if "target" in build_desc: