4 ms·
Is there any good way to cache a built container and use it as the image for later steps? I think that caching files is much less effective than caching a buil
by elurg 5y ago
Is there any good way to cache a built container and use it as the image for later steps?
I think that caching files is much less effective than caching a built container which already has dependencies installed. For tools like apt and pip the time it takes to "install" can be longer that the time it takes to "download".
- mshekow 5y agoJust push it to some image registry (e.g. the one that comes with GitLab), and then use it as image on the next job. You can also use tags to enforce that it is the same runner who runs the two jobs, so that pulling the image becomes instant