Skip to content
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

Export cache to registry should support annotations #5794

Open
neilime opened this issue Feb 28, 2025 · 0 comments
Open

Export cache to registry should support annotations #5794

neilime opened this issue Feb 28, 2025 · 0 comments

Comments

@neilime
Copy link

neilime commented Feb 28, 2025

Description

Image tag created by cache-to with "registry" does not have given annotation.

It should be good to allows to pass some annotation to exported cache image. It is useful for many use cases, like setting image source so github can link the cache image package to the right repo (and permissions)...

buildctl build ... \
  --output type=image,name=localhost:5000/myrepo:image,push=true \
  --export-cache type=registry,ref=localhost:5000/myrepo:buildcache,manifest:org.opencontainers.image.source=https://github.com/my-org/my-repo \

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants