reproducible-containers / buildkit-cache-dance

Save `RUN --mount=type=cache` caches on GitHub Actions ( Forked from https://github.com/overmindtech/buildkit-cache-dance )
Apache License 2.0
143 stars 29 forks source link

feat: support arbitrary mount options for each cache #28

Closed aminya closed 5 months ago

aminya commented 5 months ago

Fixes #12 Closes #21

aminya commented 5 months ago

@AkihiroSuda Any more comment on this?

ruffsl commented 5 months ago

Thanks @aminya for exposing all the mount arguments. As it turns out, I needed to set both the cash ID and sharing mode to match my Dockerfile in order for the cash injection and extraction to utilize the correct cash mount. Perhaps the sharing mode is included in the derivation of the internal cash key. Needless to PR now gives us that flexibility!

aminya commented 5 months ago

You're welcome! It's cool to see another robotics engineer using these tools.

I find the path parameter usually enough for my use cases, but feel free to document your findings in the readme.