docker: add OCI image labels for version and build date#21653
Open
ssam18 wants to merge 1 commit intoggml-org:masterfrom
Open
docker: add OCI image labels for version and build date#21653ssam18 wants to merge 1 commit intoggml-org:masterfrom
ssam18 wants to merge 1 commit intoggml-org:masterfrom
Conversation
Contributor
Author
|
heads up! The labeler failure is not from this PR, it is a broken config in labeler.yml that's been failing on every PR. fix is included here, just needs a merge. |
taronaeo
reviewed
Apr 9, 2026
Member
taronaeo
left a comment
There was a problem hiding this comment.
Seems like a good addition to me :)
|
Can you also some other image labels?
These labels are documented at https://github.com/opencontainers/image-spec/blob/main/annotations.md#pre-defined-annotation-keys They're useful for both people to use manually and for automated systems to use (for example, Renovate uses this information to create better PR descriptions). |
e3053a7 to
8064797
Compare
CISC
reviewed
Apr 9, 2026
Member
CISC
left a comment
There was a problem hiding this comment.
Add id: checkout to the checkout step so we can get the right SHA.
Please provide a successful run of the job (disable s390x).
CISC
reviewed
Apr 9, 2026
8064797 to
b973ae5
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Running a container and not knowing which version you're on is a frustrating experience, especially when trying to decide whether to pull a newer image. This adds
org.opencontainers.image.createdandorg.opencontainers.image.versionlabels to all published Docker images, populated from the build timestamp and the existing version tag generated during CI. Users can now rundocker inspect <image>to instantly see what version they're running. Fixes #21645