{"repo":"reproducible-containers/buildkit-cache-dance","free":true,"listed":false,"github":"https://github.com/reproducible-containers/buildkit-cache-dance","clone":"git clone https://github.com/reproducible-containers/buildkit-cache-dance.git","description":"Save `RUN --mount=type=cache` caches on GitHub Actions ( Forked from https://github.com/overmindtech/buildkit-cache-dance )","language":"TypeScript","stars":333,"topics":["actions","buildkit","docker","dockerfile","github-actions"],"license":"Apache-2.0","category":"deployment-docker-iac","readme_excerpt":"The BuildKit Cache Dance Save RUN --mount=type=cache caches on GitHub Actions or other CI platforms The BuildKit Cache Dance allows saving RUN --mount=type=cache caches on GitHub Actions or other CI platforms by extracting the cache from the previous build and injecting it into the current build. Use cases: - apt-get ( /var/cache/apt , /var/lib/apt ) - Go ( /root/.cache/go-build ) - etc. This reproducible-containers/buildkit-cache-dance action was forked from overmindtech/buildkit-cache-dance (archived on September 2023). This action be used for \"non-reproducible\" containers too. Examples apt-get GitHub Actions Dockerfile: Action: Real-world examples: - - CacheMap Options If you require more fine grained control you can manually specify a JSON formatted cache-map . The keys specify the paths on the Docker builder host to use as the bind source and the string value provides the cache mount target within the Docker build: Alternatively, you can provide a JSON object with additional options that should be passed to --mount=type=cache in the values cache-map JSON. The target path must be present in the object as a property. CLI Usage In other CI systems, you can run the script directly via node : During injection: After build during extraction: Here are the available options: Releases v1 v1 follows the original design of overmindtech/buildkit-cache-dance . v1 is composed of two actions: - reproducible-containers/buildkit-cache-dance/inject@v1.0.1 - reproducible-containers/buildki","default_branch":null,"files":null,"tree":[],"storefront":"/r/reproducible-containers","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/reproducible-containers/buildkit-cache-dance/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}