cloudbees-io/Kaniko build and push

Build and publish Docker images from a Dockerfile using Kaniko. Optionally, save the image as a tar file.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
dockerfilePath to the DockerfileDockerfile
contextDocker build context${{ cloudbees.workspace }}
destinationTarget image(s) that will be published to the registries configured in the file ${HOME}/.docker/config.json Type: CSV yes
tar-pathFull path, including filename, where the image tar file should be saved.no
build-argsDocker build arguments. Type: CSV
labelsMetadata to be associated with the resulting image. Type: CSV
targetBuild a specific target stage in a multi-stage Dockerfile. Type: string
registry-mirrorsRegistry mirror(s) to use for loading images. Type: CSV
registry-configurationCloudBees registry configuration file containing the registries to use for loading images. By default it uses the file containing the registries configured under 'Integrations' in the CloudBees platform. ${{ cloudbees.registries }}
skip-default-registry-fallbackIf set, fails build if registry-mirrors cannot pull image. If registry-mirrors is empty, this flag is ignored. Type: Boolean false
verbosityLog level verbosity - panic, fatal, error, warn, info, debug, trace info
commitThe commit ID from the source repository, used when registering the build artifact in CloudBees platform. ${{ cloudbees.scm.sha }}
repository-urlThe clone URL of the source repository, used when registering the build artifact in CloudBees platform. ${{ cloudbees.scm.repositoryUrl }}
refThe tag or branch of the source repository, used when registering the build artifact in CloudBees platform. ${{ cloudbees.scm.ref }}
artifact-nameThe name of the build artifact as it will be registered. By default, the artifact name is derived from the image repository name. no
component-idThe ID of the component associated with the artifact. If not provided, the artifact is registered with the component of the current workflow run. no${{cloudbees.component.id}}
kaniko-dirPath to the Kaniko working directory. If set, it is passed as --kaniko-dir to the executor and exported as KANIKO_DIR so Kaniko sees both the flag and the environment variable. no
namedescription
digestImage digest (image ID)
tagTag of the first pushed image
tag-digestTag of the first specified destination along with the image digest. Please note that this format is not part of the OCI standard but supported by most container tools. Tools loading such an image reference ignore the tag but perform the lookup based on the image repository and digest only. The tag only serves as a hint for humans. Using this format guarantees that the image is continued to be used even when the tag was overwritten and prevents stale image caches on different nodes.
imageImage reference of the first specified destination, including the image digest. Please note that this image reference format is not part of the OCI standard but supported by most container tools. Tools loading such an image reference ignore the tag but perform the lookup based on the image repository and digest only. The tag only serves as a hint for humans. Using this image reference format guarantees that the image is continued to be used even when the tag was overwritten and prevents stale image caches on different nodes.
artifact-idsArtifact IDs for the published images reported to the workflow run for artifact traceability purposes.