Quadlet build - add support for IgnoreFile key

Resolves: https://github.com/containers/podman/issues/27268

Signed-off-by: Ygal Blum <ygal.blum@gmail.com>
This commit is contained in:
Ygal Blum
2025-10-16 14:02:04 -04:00
parent 571031f375
commit 1800b34b51
4 changed files with 18 additions and 0 deletions

View File

@@ -1724,6 +1724,7 @@ Valid options for `[Build]` are listed below:
| ForceRM=false | --force-rm=false |
| GlobalArgs=--log-level=debug | --log-level=debug |
| GroupAdd=keep-groups | --group-add=keep-groups |
| IgnoreFile=/path/to/.customignore | --ignorefile=/path/to/.customignore |
| ImageTag=localhost/imagename | --tag=localhost/imagename |
| Label=label | --label=label |
| Network=host | --network=host |
@@ -1831,6 +1832,13 @@ Assign additional groups to the primary user running within the container proces
This is equivalent to the `--group-add` option of `podman build`.
### `IgnoreFile=`
Path to an alternate .containerignore file to use when building the image.
Note that when using a relative path you should also set `SetWorkingDirectory=`
This is equivalent to the `--ignorefile` option of `podman build`.
### `ImageTag=`
Specifies the name which is assigned to the resulting image if the build process completes