actions-marketplace-validations/Docker Build & Push Action
Builds a Docker image and pushes to a private registry with support for multiple tags
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Activelast commit Mar 26, 2026
- License
- MIT
Pinned Snippet
uses: actions-marketplace-validations/mr-smithers-excellent_docker-build-push@389e6f5b1b8430904211f55ebdd6ab5567301a0a # no releases — HEAD as of 2026-07-13tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| image | Name of the Docker image | yes | — |
| tags | Tags override for Docker image | no | — |
| appendMode | Append tags to auto-generated tags instead of replacing them | no | false |
| registry | Target Docker registry | yes | — |
| dockerfile | Location of Dockerfile, if not Dockerfile in root directory | no | Dockerfile |
| directory | Directory to run `docker build` from, if not project root | no | — |
| buildArgs | Docker build arguments passed via --build-arg | no | — |
| labels | Docker build labels passed via --label | no | — |
| target | Docker build target passed via --target | no | — |
| platform | Docker build platform passed via --platform | no | — |
| ssh | Docker build ssh options passed via --ssh | no | — |
| username | Docker registry username | no | — |
| password | Docker registry password | no | — |
| gitHubOrg | GitHub organization to push image to (if not current) | no | — |
| addLatest | Adds latest tag to auto-generated GitOps tag | no | false |
| addTimestamp | Suffixes a build timestamp to the branch-based Docker tag | no | false |
| enableBuildKit | Enables Docker BuildKit support | no | false |
| multiPlatform | Builds image with buildx to support multiple platforms | no | false |
| overrideDriver | Disables setting up docker-container driver | no | false |
| pushImage | Flag for disabling the login & push steps, set to true by default | no | true |
Outputs
| name | description |
|---|---|
| imageFullName | Full name of the Docker image with registry prefix and tag suffix |
| imageName | Name of the Docker image with owner prefix |
| tags | Tags for the Docker image |