afreisinger/Docker Build and Push Multi-Platform and Registry
Builds and pushes a Docker image to Docker Hub and GitHub Container Registry
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Activelast commit Apr 30, 2026
- License
- MIT
Pinned Snippet
uses: afreisinger/build-push-action@bf41449c646cca93867670682fe5a903bf57d194 # v1.6.0tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| docker-username | Docker Hub username | yes | — |
| docker-pat | Docker Hub personal access token | yes | — |
| image-name | Docker image name | yes | — |
| github-token | GitHub token for GHCR | yes | ${{ github.token }} |
| log-level | Log level for build | no | debug |
| authors | Image authors | no | — |
| licenses | Image licenses | no | — |
| vendor | Image vendor | no | — |
| maintainers | Image maintainers | no | — |
| description | Image description | no | — |
| publish-dockerhub | Whether to publish to Docker Hub | no | true |
| publish-ghcr | Whether to publish to GitHub Container Registry | no | false |
| env-file | Path to optional .env file | no | .env |
Outputs
| name | description |
|---|---|
| tags | Docker image tags |
| labels | Docker image labels |