greffgreff/Build and Push Docker Image
Build and push Docker images with optional tagging.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stalelast commit Oct 4, 2024
- License
- None
Pinned Snippet
uses: greffgreff/docker-image-build-push@e70061d27d165e6a795d144a7273043e7ed911ed # no releases — HEAD as of 2026-07-11tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| owner | The owner of the repository (defaults to the GitHub repository owner). | no | ${{ github.repository_owner }} |
| repository_name | The name of the repository (defaults to the GitHub repository name). | no | ${{ github.event.repository.name }} |
| registry | The Docker registry to use (defaults to GitHub Container Registry). | no | ghcr.io |
| docker_username | Username for Docker registry (defaults to GitHub username). | no | ${{ github.actor }} |
| docker_token | Access token for Docker registry login (required). | yes | — |
| with_latest_tag | Whether to push the latest image (default is true). | no | true |
| with_release_tag | Whether to retag and push the image with the release version if triggered on a release (default is false). | no | false |
| tags | Array of additional tags to push (optional). | no | — |
| trigger_event | Whether to trigger an event after pushing images (default is false). | no | false |
| event_name | Event name for the workflow (default is docker-images-pushed). | no | docker-images-pushed |
Outputs
no outputs