Builds and publishes a container image with given conditions.
7.5K
Builds and publishes container images from CI with buildah.io
pipe-buildah [GLOBAL FLAGS] [COMMAND] [FLAGS]
CLI
| Flag / Environment | Description | Type | Default |
|---|---|---|---|
$LOG_LEVEL | Define the log level for the application. | stringenum("panic", "fatal", "warn", "info", "debug", "trace") | "info" |
$ENV_FILE | Environment files to inject. | string[] |
pipe-buildah loginLogin to the given container registries.
pipe-buildah login [FLAGS]
Buildah
| Flag / Environment | Description | Type | Default |
|---|---|---|---|
$BUILDAH_CWD$CONTAINER_CWD | Working directory for buildah commands. | string | "." |
Container Registry
| Flag / Environment | Description | Type | Default |
|---|---|---|---|
$BUILDAH_LOGIN_REGISTRY_URI$CONTAINER_REGISTRY_URI | Container registry URL to login to. | string | "docker.io" |
$BUILDAH_LOGIN_REGISTRY_USERNAME$CONTAINER_REGISTRY_USERNAME | Container registry username for the given registry. | string | |
$BUILDAH_LOGIN_REGISTRY_PASSWORD$CONTAINER_REGISTRY_PASSWORD | Container registry password for the given registry. | string |
pipe-buildah buildBuild container images.
pipe-buildah build [FLAGS]
| Flag / Environment | Description | Type | Default |
|---|---|---|---|
$BUILDAH_CWD$CONTAINER_CWD | Working directory for buildah commands. | string | "." |
Container Image
| Flag / Environment | Description | Type | Default |
|---|---|---|---|
$BUILDAH_BUILD_IMAGE_PLATFORMS$CONTAINER_IMAGE_PLATFORMS | Container image platforms to be built. | string[] | |
$BUILDAH_BUILD_IMAGE_NAME$CONTAINER_IMAGE_NAME* | Image name for the container image to be built. | string | |
$BUILDAH_BUILD_IMAGE_TAGS$CONTAINER_IMAGE_TAGS* | Image tags for the container image to be built. | string[] | |
$BUILDAH_BUILD_IMAGE_TAGS_TEMPLATE$CONTAINER_IMAGE_TAGS_TEMPLATE | Modifies every tag that matches a certain condition. Template is interpolated with the given matches in the regular expression. | stringformat(yaml([]struct{ match: RegExp, template: Template(match) })) | "[]" |
$BUILDAH_BUILD_IMAGE_TAGS_SANITIZE$CONTAINER_IMAGE_SANITIZE_TAGS | Sanitizes the given regex pattern out of tag name. Template is interpolated with the given matches in the regular expression. | stringformat(yaml([]struct{ match: RegExp, template: Template(match) })) | "[\n { \"match\": \"([^/]*)/(.*)\", \"template\": \"{{ index $ 1 | upper }}_{{ index $ 2 }}\" }\n]" |
$BUILDAH_BUILD_IMAGE_TAG_AS_LATEST$CONTAINER_IMAGE_TAGS_AS_LATEST | Regex pattern to tag the image as latest. Use either "heads/" for narrowing the search to branches or "tags/" for narrowing the search to tags. | stringformat(yaml([]RegExp)) | "[ \"^tags/v?\\\\d+.\\\\d+.\\\\d+$\" ]" |
$BUILDAH_BUILD_IMAGE_PULL$CONTAINER_IMAGE_PULL | Pull before building the image. | bool | true |
$BUILDAH_BUILD_IMAGE_PUSH$CONTAINER_IMAGE_PUSH | Push the image after building. | bool | true |
$BUILDAH_BUILD_IMAGE_BUILD_ARGS$CONTAINER_IMAGE_BUILD_ARGS | Pass in extra build arguments for image. You can use it as a template with environment variables as the context. | stringformat(yaml(map[string]Template())) | |
$BUILDAH_BUILD_IMAGE_LATEST_TAG$CONTAINER_IMAGE_LATEST_TAG | Latest tag for the container image where it is marked as latest. | string | "latest" |
$BUILDAH_BUILD_IMAGE_CACHE$CONTAINER_IMAGE_CACHE | Specify the cache for the container image. | string | |
$BUILDAH_BUILD_IMAGE_FORMAT$CONTAINER_IMAGE_FORMAT | Specify the format for Container Image. | stringformat(enum("oci", "docker")) | "oci" |
$BUILDAH_BUILD_IMAGE_STORAGE_DRIVER$CONTAINER_IMAGE_STORAGE_DRIVER$BUILDAH_STORAGE_DRIVER | Specify the storage driver for Buildah. | stringformat(enum("overlay", "overlay2", "vfs")) | "vfs" |
* required
Container Manifest
| Flag / Environment | Description | Type | Default |
|---|---|---|---|
$BUILDAH_BUILD_MANIFEST_TARGET$CONTAINER_MANIFEST_TARGET | Target image names for patching the manifest. | stringformat(Template([]string)) | |
$BUILDAH_BUILD_MANIFEST_FILE$CONTAINER_MANIFEST_FILE | Write all the published images into a file for later use. | stringformat(Template([]string)) | ".published-container-images_{{ $ | join \",\" | sha256sum }}" |
| Flag / Environment | Description | Type | Default |
|---|---|---|---|
$BUILDAH_LOGIN_REGISTRY_URI$CONTAINER_REGISTRY_URI | Container registry URL to login to. | string | "docker.io" |
$BUILDAH_LOGIN_REGISTRY_USERNAME$CONTAINER_REGISTRY_USERNAME | Container registry username for the given registry. | string | |
$BUILDAH_LOGIN_REGISTRY_PASSWORD$CONTAINER_REGISTRY_PASSWORD | Container registry password for the given registry. | string |
Containerfile
| Flag / Environment | Description | Type | Default |
|---|---|---|---|
$BUILDAH_BUILD_FILE_CONTEXT$CONTAINER_FILE_CONTEXT | Containerfile context argument for build operation. | string | "." |
$BUILDAH_BUILD_FILE_NAME$CONTAINER_FILE_NAME | Containerfile path for the build operation. | string | "Dockerfile" |
GIT
| Flag / Environment | Description | Type | Default |
|---|---|---|---|
$CI_COMMIT_REF_NAME$BITBUCKET_BRANCH | Source control branch. | string | |
$CI_COMMIT_TAG$BITBUCKET_TAG | Source control tag. | string |
Tags File
| Flag / Environment | Description | Type | Default |
|---|---|---|---|
$TAGS_FILE | Read tags from a comma separated file. | string | |
$TAGS_FILE_STRICT | Fail on missing tags file. | bool | false |
pipe-buildah manifestUpdate manifests of the container images.
pipe-buildah manifest [FLAGS]
| Flag / Environment | Description | Type | Default |
|---|---|---|---|
$BUILDAH_CWD$CONTAINER_CWD | Working directory for buildah commands. | string | "." |
Container Manifest
| Flag / Environment | Description | Type | Default |
|---|---|---|---|
$BUILDAH_MANIFEST_FILES$CONTAINER_MANIFEST_FILES | Read published tags from a file. | string[]format(glob) | "**/.published-container-images*" |
$BUILDAH_MANIFEST_TARGET$CONTAINER_MANIFEST_TARGET | Target image names for patching the manifest. | stringformat(Template()) | |
$BUILDAH_MANIFEST_IMAGES$CONTAINER_MANIFEST_IMAGES | Image names for patching the manifest with the given target. | string[] | |
$BUILDAH_MANIFEST_MATRIX$CONTAINER_MANIFEST_MATRIX | Matrix of all the images that should be manifested. | stringformat(yaml([]struct{ target: string, images: []string })) |
| Flag / Environment | Description | Type | Default |
|---|---|---|---|
$BUILDAH_LOGIN_REGISTRY_URI$CONTAINER_REGISTRY_URI | Container registry URL to login to. | string | "docker.io" |
$BUILDAH_LOGIN_REGISTRY_USERNAME$CONTAINER_REGISTRY_USERNAME | Container registry username for the given registry. | string | |
$BUILDAH_LOGIN_REGISTRY_PASSWORD$CONTAINER_REGISTRY_PASSWORD | Container registry password for the given registry. | string |
Content type
Image
Digest
sha256:770b442ed…
Size
239.3 MB
Last updated
1 day ago
docker pull cenk1cenk2/pipe-buildah