Skip to content

TheAthletic/gh-action-cache-buildkit-state

 
 

Repository files navigation

gh-action-cache-buildkit-state

Usage

- name: Set up Docker BuildX
  id: buildx
  uses: docker/setup-buildx-action@v1
  with:
    install: true
    driver-opts: image=moby/buildkit:buildx-stable-1

- name: Enable buildkit cache
  uses: actions/cache@v2
  with:
    path: /tmp/buildkit-cache/buildkit-state.tar
    key: ${{ runner.os }}-buildkit-${{ github.sha }}
    restore-keys: |
      ${{ runner.os }}-buildkit-

- name: Load buildkit state from cache
  uses: dashevo/gh-action-cache-buildkit-state@v1
  with:
    builder: buildx_buildkit_${{ steps.buildx.outputs.name }}0
    cache-path: /tmp/buildkit-cache
    cache-max-size: 2g

About

GitHub Action to load buildkit state from cache

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%