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

Ignore pre-cached images #51

Open
pl4nty opened this issue May 14, 2023 · 1 comment
Open

Ignore pre-cached images #51

pl4nty opened this issue May 14, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@pl4nty
Copy link

pl4nty commented May 14, 2023

Is your feature request related to a problem? Please describe.
Hosted runners come with common base images built-in, but the action appears to restore and save them anyway. This only causes unnecessary delays with smaller Linux images, but large Windows images can cause disk space exhaustion during saving and failure to save any layers.

Describe the solution you'd like
It would be great if the action could ignore base cached images, but detecting this could be challenging, especially if the same action runs across multiple runner types. Maybe an option could be created to ignore specific layers by digest? Then users could manually specify the layers they'd like to ignore.

Describe alternatives you've considered
I'm currently attempting to delete the built-in images at the end of my builds, so they're not saved by the post-build step. If a technical solution isn't possible, maybe this approach could be added to the README?

@pl4nty pl4nty added the enhancement New feature or request label May 14, 2023
@jpribyl
Copy link
Owner

jpribyl commented Jun 15, 2023

I will try to take a look at this when I have some time, in the meantime feel free to open a PR for it 😃 would be happy to add you on as a collaborator

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

No branches or pull requests

2 participants