From 1e713c1a5fb9361a9327e49994b78bd2043db164 Mon Sep 17 00:00:00 2001 From: givensuman Date: Fri, 10 Oct 2025 13:24:44 -0400 Subject: [PATCH] Add BuildArg example into documentation Signed-off-by: givensuman --- docs/source/markdown/podman-systemd.unit.5.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/source/markdown/podman-systemd.unit.5.md b/docs/source/markdown/podman-systemd.unit.5.md index 03ed8c7a3c..f20cb52aa0 100644 --- a/docs/source/markdown/podman-systemd.unit.5.md +++ b/docs/source/markdown/podman-systemd.unit.5.md @@ -2166,7 +2166,7 @@ Yaml=/opt/k8s/deployment.yml WantedBy=multi-user.target default.target ``` -Example for locally built image to be used in a container: +Example for locally built image to be used in a container with build-specific arguments: `test.build` ``` @@ -2178,6 +2178,9 @@ ImageTag=localhost/imagename # expecting to find a Containerfile/Dockerfile # + other files needed to build the image SetWorkingDirectory=unit +# Set build arguments VERSION and DEBUG +BuildArg=VERSION=1.0 \ + DEBUG=false ``` `test.container`