jharmison-redhat/bootc image builder
Perform bootc image build, rechunk using bootc-base-imagectl, and optionally publish in a single action.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Maintainedlast commit Oct 20, 2025
- License
- Apache 2.0
Pinned Snippet
uses: jharmison-redhat/action-bootc-build@d3c254510a6e962044ffb9e2eaa440fccb307a03 # v1.0.3tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| annotations | Anotations to apply during the build, separated by newlines | no | — |
| arch | Set the ARCH of the images to the provided value, instead of the architecture of the build host | no | amd64 |
| authfile | Alternative authfile location to use for podman push and/or layer cache | no | — |
| build-args | Build arguments to pass during the build, separated by newlines | no | — |
| cache-repo | An OCI repository to use for image layer cache on the initial build only | no | — |
| context | The build context to use for the initial build, if anything other than the repository root | no | — |
| extra-args | Arbitrary extra arguments provided to the podman build - avoid whitespace, quoting is possible but unreliable | no | — |
| file | Path or URL for the Containerfile to build, otherwise it follows podman's automatic discovery logic | no | — |
| graphroot | A path to use as backing storage for the podman graphroot, via bind mount, to ensure enough space for the image build (on GitHub Hosted Runners, /mnt is a dedicated partition with around 60 GB of free space) | no | /mnt/containers-storage |
| labels | Labels to apply during the build, separated by newlines | no | — |
| max-layers | The maximum number of layers to chunk the final image into | no | — |
| no-cache | Disable the layer cache when building all images ("true" for true, anything else is false) | no | false |
| pull | Base image pull policy for the initial build ("always"|"missing"|"never"|"newer") | no | newer |
| push | Push the final chunked image to the tag after build ("true" for true, anything else is false) NOTE: Requires that you already be logged into the registry using redhat-actions/podman-login@v1 or similar. | no | false |
| rechunk-image | An alternate image to use for rechunking (will reuse the unchunked image if not provided) | no | — |
| secret | Secrets to make available to RUN instructions in the Containerfile from a file or environment, separated by newlines ("id=mysecret,src=MYSECRET,type=env" or "id=mysecret,src=.mysecret,type=file") | no | — |
| shm-size | The size of /dev/shm for the initial build | no | — |
| tag | Tagged name to apply to the final built image | no | — |
Outputs
| name | description |
|---|---|
| iid | The Podman ImageID of the chunked image left in root's containers-storage |
| tag | The Podman image tag of the chunked image left in root's containers-storage |
| manifest | The skopeo manifest of the rechunked image |