add-hosts | List/CSV | Custom hosts mapping (e.g., docker:10.180.0.1) |
allow | List/CSV | Extra privileged entitlements (e.g., network.host,security.insecure) |
annotations | List | Annotations to set on the image |
attests | List | Attestation parameters (e.g., type=sbom,generator=image) |
builder | String | Builder instance (from setup-buildx-action) |
build-args | List | Build-time variables |
build-contexts | List | Additional build contexts (e.g., name=path) |
cache-from | List | External cache sources (e.g., type=local,src=path/to/dir) |
cache-to | List | Cache export destinations (e.g., type=local,dest=path/to/dir) |
call | String | Method for evaluating build (e.g., check) |
cgroup-parent | String | Parent cgroup for the build container |
context | String | Build context path or URL (default: Git context) |
file | String | Path to Dockerfile (default: {context}/Dockerfile) |
labels | List | Image metadata |
load | Bool | Shorthand for --output=type=docker (default: false) |
network | String | Networking mode for RUN instructions |
no-cache | Bool | Disable cache usage (default: false) |
no-cache-filters | List/CSV | Stages to not cache |
outputs | List | Output destinations (format: type=local,dest=path) |
platforms | List/CSV | Target platforms (e.g., linux/amd64,linux/arm64) |
provenance | Bool/String | Generate provenance attestation (shorthand for --attest=type=provenance) |
pull | Bool | Always attempt to pull referenced images (default: false) |
push | Bool | Shorthand for --output=type=registry (default: false) |
sbom | Bool/String | Generate SBOM attestation (shorthand for --attest=type=sbom) |
secrets | List | Secrets to expose (e.g., key=string, GIT_AUTH_TOKEN=mytoken) |
secret-envs | List/CSV | Secret env vars (e.g., key=envname, MY_SECRET=MY_ENV_VAR) |
secret-files | List | Secret files (e.g., key=filename, MY_SECRET=./secret.txt) |
shm-size | String | Size of /dev/shm (e.g., 2g) |
ssh | List | SSH agent sockets or keys |
tags | List/CSV | Image tags |
target | String | Target stage to build |
ulimit | List | Ulimit options (e.g., nofile=1024:1024) |
github-token | String | GitHub Token for Git context (default: ${{ github.token }}) |