Open mstoetzer opened 2 years ago
As for reference: https://github.com/opencontainers/image-spec/blob/main/annotations.md
it sounds pretty cool. Do you have any good examples where we can borrow this for GH actions?
This looks like a good pointer https://github.com/humio/humio-operator/pull/449/files
Haven't used them in GH actions before. I put them directly into the Dockerfile. But yes, putting them as build args could also work to avoid bloating the Dockerfile. I'm fine with both.
Well, there is a plugin for GH actions: https://github.com/marketplace/actions/docker-metadata-action
It could be a nice addition to provide official opencontainers labels in the Dockerfile:
This is useful for various automation tools (e.g. dependabot or renovatebot) that are able to extract the release notes from github and other information. When these tools update the dockerimage version, they can extract the release notes from the
source
label and provide it in the pullrequest. See the renovate docsWhat do you think? What values should those labels have?