# buildah-build
[](https://github.com/redhat-actions/buildah-build/actions?query=workflow%3A%22Test+Build%22)
[](https://github.com/redhat-actions/buildah-build/actions?query=workflow%3A%22Verify+Bundle%22)
[](https://github.com/redhat-actions/buildah-build/tags)
[](./LICENSE)
[](./dist)
Buildah is a GitHub Action for building Docker and Kubernetes-compatible images quickly and easily.
Buildah only works on Linux. GitHub's [Ubuntu Environments](https://github.com/actions/virtual-environments#available-environments) (`ubuntu-18.04` and newer) come with buildah installed. If you are not using these environments, or if you want to use a different version, you must first [install buildah](https://github.com/containers/buildah/blob/master/install.md).
After building your image, use [push-to-registry](https://github.com/redhat-actions/push-to-registry) to push the image and make it pullable.
## Action Inputs
Input | Required | Description |
---|---|---|
image | Yes | Name to give the output image. |
tags | No |
The tags of the image to build. For multiple tags, seperate by a space. For example, latest ${{ github.sha }} .Default: latest
|
base-image | No | The base image to use for the container. |
dockerfiles | No | The list of Dockerfile paths to perform a build using docker instructions. This is a multiline input to allow multiple Dockerfiles. |
oci | No |
Build the image using the OCI format, instead of the Docker format. By default, this is false , because images built using the OCI format have issues when published to Dockerhub.
|
context | No | Path to directory to use as the build context. Default: . |
build-args | No | Build arguments to pass to the Docker build using --build-arg , if using a Dockerfile that requires ARGs.Uses the form arg_name=arg_value , and separate arguments with newlines. |
content | No | The content to copy inside the container to create the final image. This is a multiline input to allow you to copy more than one file/directory.content: | target/spring-petclinic-2.3.0.BUILD-SNAPSHOT.jar |
entrypoint | No | The entry point to set for the container. This is a multiline input; split arguments across lines.
entrypoint: | java -jar spring-petclinic-2.3.0.BUILD-SNAPSHOT.jar |
port | No | The port to expose when running the container. |
workdir | No | The working directory to use within the container. |
envs | No | The environment variables to be set when running the container. This is a multiline input to add multiple environment variables.envs: | GOPATH=/root/buildah/go |