actions-marketplace-validations/Docker Build & Push Action & Auto Retry when error occured
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
- Stale
- License
- None
- Runtime
- Deprecated runtime
Inputs
| name | description | required | default |
|---|---|---|---|
| image | Name of the Docker image | yes | — |
| tags | Tags override for Docker image | no | — |
| 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 | — |
| 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 |
| addGithubTag | set docker tag same as github tag | no | false |
| enableBuildKit | Enables Docker BuildKit support | no | false |
| pushImage | Flag for disabling the login & push steps, set to true by default | no | true |
| maxRetryAttempts | Number of automatic retries when an error occurs | no | 0 |
| retryDelaySeconds | Retry Delay Seconds | no | 0 |
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 |