Skip to main content

Buildah component

The buildah component builds container images using the buildah tool. It is functionally equivalent to the container component, but it uses buildah instead of podman as the underlying builder. The component supports the same inputs and outputs as the container component, including build arguments, image labels, and authentication to registries. See the container component documentation for usage examples and details.

Inputs​

NameDescriptionDefaultType
------------
argsArguments to pass to the builder.string
cache-enabledShould registry-backed build cache be used?falseboolean
containerfile-pathAlternate path to the Containerfile, if either Dockerfile or Containerfile in the conect directory.string
dependenciesThe dependencies that this job depends on.[]array
nameName for the pipeline jobs and the container.containerstring
needsThe jobs that this job depends on.[]array
pathPath to the directory containing Container sources / context..string
registryRegistry to store container image releases in$CI_REGISTRYstring
repository-pathRepository to store container image releases in$CI_REGISTRY_PROJECT_PATHstring
rulesThe jobs that this job depends on.[{"if":"$CI_PIPELINE_SOURCE == \"schedule\"","when":"never"},{"if":"$CI_PIPELINE_SOURCE == \"merge_request_event\"","when":"on_success"},{"when":"on_success"}]array
scannersScanners to use. none, vuln, license, secret, misconfig["vuln","secret","license","misconfig"]array
scanning-allow-failureShould the pipeline fail if scanning the built container image fails?falseboolean
scanning-enabledShould the built container image be scanned?trueboolean
scanning-ignore-unfixedExclude vulnerabilities that do not have a fix available.trueboolean
scanning-severityWhat level of severity should cause scanning of the built container to fail?CRITICALstring
scanning-timeoutHow long should the scanning process be allowed to run before timing out? Use format e.g. 5m0s30m0sstring
signing-enabledShould the built container image be signed?trueboolean
stageThe pipeline stage that the jobs belongs to.buildstring
tagsThe runners that this job depends on.[]array
versionInternal version of the nested component to use.mainstring