-
Notifications
You must be signed in to change notification settings - Fork 29
feat(docker-build-push-image): support annotations #1513
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
martincostello
commented
Nov 10, 2025
- Add input to allow for custom image annotations.
- Pass annotations from docker/metadata-action to docker/build-push-action.
- Add input to allow for custom image annotations. - Pass annotations from docker/metadata-action to docker/build-push-action.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds support for custom annotations to Docker images by introducing a new annotations input parameter. The changes enable users to pass custom annotations through the composite action to the underlying Docker build and push operations.
- Adds new
annotationsinput parameter to the action - Passes annotations through
docker/metadata-actionanddocker/build-push-action - Updates documentation to describe the new parameter
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| actions/docker-build-push-image/action.yaml | Adds annotations input definition and passes it to metadata and build-push actions |
| actions/docker-build-push-image/README.md | Documents the new annotations parameter in the inputs table |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
ricky-undeadcoders
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your contribution!
One minor change request with the docs but otherwise LGTM.
Match the other inputs. Co-authored-by: Ricky Whitaker <ricky.whitaker@grafana.com>
- Add annotations to container image, manifest and index ([docs](https://docs.docker.com/build/ci/github-actions/annotations/#configure-annotation-level)). Needs grafana/shared-workflows#1513 for Docker Hub. - Enable reproducible builds ([docs](https://docs.docker.com/build/ci/github-actions/reproducible-builds/)).