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

Support multiple cache-from arguments #1118

Closed
AdeelK93 opened this issue May 11, 2024 · 1 comment
Closed

Support multiple cache-from arguments #1118

AdeelK93 opened this issue May 11, 2024 · 1 comment

Comments

@AdeelK93
Copy link

Description

Docker supports multiples caches - but there isn't really a way to provide multiple cache-from arguments.

One solution may be to allow sequences in the cache-from, perhaps like:

cache-from:
- type=registry,ref=<registry>/<cache-image>:<branch>
- type=registry,ref=<registry>/<cache-image>:main 
@AdeelK93 AdeelK93 added kind/enhancement New feature or request status/triage labels May 11, 2024
@crazy-max crazy-max removed kind/enhancement New feature or request status/triage labels May 27, 2024
@crazy-max
Copy link
Member

This is actually supported but correct syntax is:

cache-from: |
  type=registry,ref=<registry>/<cache-image>:<branch>
  type=registry,ref=<registry>/<cache-image>:main 

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

No branches or pull requests

2 participants