Set up Docker Buildkit in GitHub Actions to use the new experimental GitHub Actions cache backend:
This action won't be necessary once those pull requests are included in official releases of Docker.
In a GitHub Actions workflow:
jobs:
build:
steps:
- uses: benesch/setup-docker-caching@master
- run: docker buildx build --cache-from type=gha --cache-to type=gha PATH