mr-smithers-excellent/Docker Build & Push Action

Builds a Docker image and pushes to a private registry with support for multiple tags

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
imageName of the Docker imageyes
tagsTags override for Docker imageno
appendModeAppend tags to auto-generated tags instead of replacing themnofalse
registryTarget Docker registryyes
dockerfileLocation of Dockerfile, if not Dockerfile in root directorynoDockerfile
directoryDirectory to run `docker build` from, if not project rootno
buildArgsDocker build arguments passed via --build-argno
labelsDocker build labels passed via --labelno
targetDocker build target passed via --targetno
platformDocker build platform passed via --platformno
sshDocker build ssh options passed via --sshno
secretsDocker build secrets passed via --secret (e.g. id=mysecret,src=secret.txt). Requires BuildKit.no
usernameDocker registry usernameno
passwordDocker registry passwordno
gitHubOrgGitHub organization to push image to (if not current)no
addLatestAdds latest tag to auto-generated GitOps tagnofalse
addTimestampSuffixes a build timestamp to the branch-based Docker tagnofalse
enableBuildKitEnables Docker BuildKit supportnofalse
cacheFromDocker cache source(s) passed via --cache-from. Accepts one entry per line for multiple sources (e.g. type=gha or type=registry,ref=myimage:cache).no
cacheToDocker cache destination(s) passed via --cache-to. Accepts one entry per line for multiple destinations (e.g. type=gha,mode=max).no
multiPlatformBuilds image with buildx to support multiple platformsnofalse
overrideDriverDisables setting up docker-container drivernofalse
skipLoginSkip the Docker login step, useful when credentials are pre-configured via a credential helper or OIDCnofalse
pushImageFlag for disabling the login & push steps, set to true by defaultnotrue
namedescription
imageFullNameFull name of the Docker image with registry prefix and tag suffix
imageNameName of the Docker image with owner prefix
tagsTags for the Docker image