#github actions docker layer caching

1 messages · Page 1 of 1 (latest)

signal wasp
#

I am currently integrating the rust sdk into github actions, and is wondering about buildx layer caching. During local development layer caching works as it should because it shares the same dagger-engine container and as such caching. However, it becomes at bit of a struggle when working in actual CI.

Would the preferred way be to publish/pull images for layer caches? Or do we have another mechanism to get the same effect?

Also where are cache volumes stored by default? so that I could maybe use the built-in caching mechanism in github actions.

proven grail
# signal wasp I am currently integrating the rust sdk into github actions, and is wondering ab...

👋 built-in GHA caching it's tricky given the way that docker and buidkit store the information. Having said that, we've recently merged support for exporting/importing cache here https://github.com/dagger/dagger/pull/4543 which is aligned to the way docker recommends using caching for github actions: https://docs.docker.com/build/cache/backends/gha/

This feature is still under testing so please let us know in case something doesn't work as supposed 🙏

GitHub

Signed-off-by: Erik Sipsma erik@sipsma.dev
This is the first step towards the idea outlined here of server-side cache configuration.
Highlights:

We have our own buildkitd main func now.
We also ha...

Docker Documentation