-
Notifications
You must be signed in to change notification settings - Fork 406
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
FR: Annotate images with build information #221
Comments
This issue is stale because it has been open for 90 days with no |
This seems uncontroversial. The go version is embedded in the binary anyway, so adding this to image metadata won't have any negative effect.
I'm okay with this, but it does have an unfortunate side effect. Right now, most versions of If we start embedding
We kind of already do:
I'd be fine with adding more here (version, vcs id, etc) or making it more accessible (annotation, label). We could even include the go buildid (see #269) on a layer annotation if we wanted to start doing remote caching... |
This issue is stale because it has been open for 90 days with no |
Except for It's nice that different versions of |
Would it be bad to put the |
Doesn't really matter to me where we put it, so long as we can document the expectation of where to find it. Once it's anywhere, we can even change it without breaking possible expectations about cross- |
@imjasonh Are you referring to OCI annotations? If so, I also needed this. (Context: I am trying to publish images to GHCR.io but the only way to get it to associate images to a particular repo/tag in the UI is to label the OCI images with these annotations.) |
I wasn't thinking that exactly but it would also e ~easy to support. What OCI annotations does the GitHub UI expect? |
org.opencontainers.* were not working until somewhat recently (https://twitter.com/clarkbw/status/1380685873067397123?s=21) but it might be working now |
This seems more related to #366, which will happen some time after Go 1.18, and only be available to images built using Go 1.18. In the meantime, it looks like the UI inspects labels, not annotations, so:
|
ko
-published images should be annotated with information to help derive provenance, to aid debugging or reproducibility. This information could include:More fields might turn out to be useful in the future, but that's a start. These could be annotations on the image/index manifest, or possibly just on the "main" binary layer.
The text was updated successfully, but these errors were encountered: