You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cache volumes (also known as core.#CacheDir in the 0.2 CUE SDK), uses the llb.AsPersistentCacheDir() call, the same that's used in Dockerfiles for e.g. RUN --mount=type=cache,target=/var/cache/apt .
The persistent cache dir is stored internally in BuildKit, which works great locally, however it's not persistent across CI runs (because we get a different BuildKit instance each time).
Ideally we should find a way to persist BuildKit's persistent cache directories into GH's cached directories.
A starting clue to figure this out is look into how people are solving the problem in Dockerfiles using --mount=type=cache.
Activity
jlongtine commentedon Jan 10, 2022
@aluzzardi I think this is relevant: moby/buildkit#1512
jlongtine commentedon Jan 10, 2022
This might be relevant, as well: moby/buildkit#1545
[-]Persist engine.#CacheDir on CI[/-][+]Persist core.#CacheDir on CI[/+][-]Persist core.#CacheDir on CI[/-][+]Persist cache volumes on CI[/+]TomChv commentedon Oct 30, 2023
I'm closing this issue since Dagger cloud actually fix this issue with a persistant cache across run