Merge pull request #27309 from ygalblum/quadlet-build-ignorefile

Quadlet build - add support for IgnoreFile key
This commit is contained in:
openshift-merge-bot[bot]
2025-10-17 15:37:32 +00:00
committed by GitHub
4 changed files with 18 additions and 0 deletions

View File

@@ -1725,6 +1725,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 |
@@ -1840,6 +1841,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