docker/Build and push Docker images

Build and push Docker images with Buildx

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
add-hostsList of a customs host-to-IP mapping (e.g., docker:10.180.0.1)no
allowList of extra privileged entitlement (e.g., network.host,security.insecure)no
annotationsList of annotation to set to the imageno
attestsList of attestation parameters (e.g., type=sbom,generator=image)no
build-argsList of build-time variablesno
build-contextsList of additional build contexts (e.g., name=path)no
builderBuilder instanceno
cache-fromList of external cache sources for buildx (e.g., user/app:cache, type=local,src=path/to/dir)no
cache-toList of cache export destinations for buildx (e.g., user/app:cache, type=local,dest=path/to/dir)no
callSet method for evaluating build (e.g., check)no
cgroup-parentOptional parent cgroup for the container used in the buildno
contextBuild's context is the set of files located in the specified PATH or URLno
filePath to the Dockerfileno
labelsList of metadata for an imageno
loadLoad is a shorthand for --output=type=dockernofalse
networkSet the networking mode for the RUN instructions during buildno
no-cacheDo not use cache when building the imagenofalse
no-cache-filtersDo not cache specified stagesno
outputsList of output destinations (format: type=local,dest=path)no
platformsList of target platforms for buildno
provenanceGenerate provenance attestation for the build (shorthand for --attest=type=provenance)no
pullAlways attempt to pull all referenced imagesnofalse
pushPush is a shorthand for --output=type=registrynofalse
sbomGenerate SBOM attestation for the build (shorthand for --attest=type=sbom)no
secretsList of secrets to expose to the build (e.g., key=string, GIT_AUTH_TOKEN=mytoken)no
secret-envsList of secret env vars to expose to the build (e.g., key=envname, MY_SECRET=MY_ENV_VAR)no
secret-filesList of secret files to expose to the build (e.g., key=filename, MY_SECRET=./secret.txt)no
shm-sizeSize of /dev/shm (e.g., 2g)no
sshList of SSH agent socket or keys to expose to the buildno
tagsList of tagsno
targetSets the target stage to buildno
ulimitUlimit options (e.g., nofile=1024:1024)no
github-tokenGitHub Token used to authenticate against a repository for Git contextno${{ github.token }}
namedescription
imageidImage ID
digestImage digest
metadataBuild result metadata