Add BuildArg example into documentation

Signed-off-by: givensuman <givensuman@duck.com>
This commit is contained in:
givensuman
2025-10-10 13:24:44 -04:00
parent b4d81c0338
commit 1e713c1a5f

View File

@@ -2166,7 +2166,7 @@ Yaml=/opt/k8s/deployment.yml
WantedBy=multi-user.target default.target 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` `test.build`
``` ```
@@ -2178,6 +2178,9 @@ ImageTag=localhost/imagename
# expecting to find a Containerfile/Dockerfile # expecting to find a Containerfile/Dockerfile
# + other files needed to build the image # + other files needed to build the image
SetWorkingDirectory=unit SetWorkingDirectory=unit
# Set build arguments VERSION and DEBUG
BuildArg=VERSION=1.0 \
DEBUG=false
``` ```
`test.container` `test.container`