-
Notifications
You must be signed in to change notification settings - Fork 31
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
Speed-up with cache #16
Comments
that would be a great idea if Github Action would cache minikube images but I asked them they cant fit the all the k8s images in the cache but if someone interested they could ask again from github environments managers to run |
@enricopesce I see some other github actions like "kubectl" use this folder " /opt/hostedtoolcache/" /opt/hostedtoolcache/kubectl/1.23.1/x64/kubectl do u think it would be helpful if minikube installs itself in that folder as well ? |
I'm wondering if the cache could be used to accomplish this. It would be nice, since the k8s images are quite large, so it wastes a lot of bandwidth and time to download them over and over again. I suspect in order to use the cache though, we would need to expose a "download only" mode for the action, and then a separate "start" mode, which would then be used to actually start the download image. |
For anyone who finds this, I was able to cache the minikube preload by using the
The only problem with this approach is that the |
@ddl-ssenecal thank you very much for informing me on this, and do the users have to add the block that you mentioned ?
if the users have to do it, maybe I should add that to the readme as a good practice. |
I don't have a lot of details either. However, no, I don't think its possible to have a global cache, and this cache it per repo I believe. Adding that block helps by caching some of the binaries that need to be downloaded, but not all of them, so in the end it didn't make a huge difference in the startup time. If someone were able to figure out how to pass the |
Created a PR to enable caching of ISO, kicbase, and preload. Will also add binary caching in the future. |
Hi ! Thank you for this action!
I'm looking to speed-up my workflow, how can I cache Minikube setup and reuse the cache without re-downloading Minikube in every iteration?
The text was updated successfully, but these errors were encountered: