greffgreff/Build and Push Docker Image

Build and push Docker images with optional tagging.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stalelast commit Oct 4, 2024
License
None

Pinned Snippet

workflow.ymlSHA-pinned
uses: greffgreff/docker-image-build-push@e70061d27d165e6a795d144a7273043e7ed911ed # no releases — HEAD as of 2026-07-11

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
ownerThe owner of the repository (defaults to the GitHub repository owner).no${{ github.repository_owner }}
repository_nameThe name of the repository (defaults to the GitHub repository name).no${{ github.event.repository.name }}
registryThe Docker registry to use (defaults to GitHub Container Registry).noghcr.io
docker_usernameUsername for Docker registry (defaults to GitHub username).no${{ github.actor }}
docker_tokenAccess token for Docker registry login (required).yes
with_latest_tagWhether to push the latest image (default is true).notrue
with_release_tagWhether to retag and push the image with the release version if triggered on a release (default is false).nofalse
tagsArray of additional tags to push (optional).no
trigger_eventWhether to trigger an event after pushing images (default is false).nofalse
event_nameEvent name for the workflow (default is docker-images-pushed).nodocker-images-pushed

no outputs