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

Wildcards for adding files of a certain type #1639

Open
1 task
VMariusKlein opened this issue Feb 27, 2025 · 2 comments
Open
1 task

Wildcards for adding files of a certain type #1639

VMariusKlein opened this issue Feb 27, 2025 · 2 comments
Labels
enhancement New feature or request triage New issues or PRs to be acknowledged by maintainers

Comments

@VMariusKlein
Copy link

What is the version of your ORAS CLI

1.2.0

What would you like to be added?

The idea is quite simple: Wildcards to push multiple files (of a certain type or naming schmema).

For example:
Given the use-case I store a bunch of documentation files in a folder it would be great to do:
oras push repo_a/mypushedfiles:v1.0.0 ./*.pdf:application/pdf to push all pdf files with the correct type.

In my case, I want to manage a certain artifact with a lot of files with different file types (but the number of different file types is manageable). There is a lot of files of the same file type, so it would actually be great to add the content with such a feature. Otherwise I would have to add all files explicitly to have them added with the correct type.

Why is this needed for ORAS?

This would greatly help pushing larger amounts of files with the correct type for deduplication.

Are you willing to submit PRs to contribute to this feature?

  • Yes, I am willing to implement it.
@VMariusKlein VMariusKlein added enhancement New feature or request triage New issues or PRs to be acknowledged by maintainers labels Feb 27, 2025
@FeynmanZhou
Copy link
Member

FeynmanZhou commented Feb 27, 2025

Hi @VMariusKlein , have you considered pushing a folder with those files? or you would expect those files have to be pushed and stored separately to a repo?

@VMariusKlein
Copy link
Author

Hi @FeynmanZhou !
The reason for this requirement is the advantages of deduplication which is not really given if the folders are pushed.
Imagine the folder contains 200 pdfs and 200 images in png format. Then one file changes of those 200.
If I push the folder as a whole as tarball, I would have a new version of the tarball and can't profit from the 199 other files staying the same.
If I had every single file as unique artifact, then I can profit from the fact that only the one file changed and the deduplication.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request triage New issues or PRs to be acknowledged by maintainers
Projects
None yet
Development

No branches or pull requests

2 participants