Skip to content

Improve Dockerfile caching in CI #41

Improve Dockerfile caching in CI

Improve Dockerfile caching in CI #41

Workflow file for this run

name: Spellcheck
on:
pull_request: {}
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
env:
USER: root
jobs:
spellcheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Cache Docker layers
uses: actions/cache@v4
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
- name: Run spellcheck
run: |
make spellcheck GHA_CACHE=true CONTAINER_ENGINE=docker
- # Temp fix
# https://github.com/docker/build-push-action/issues/252
# https://github.com/moby/buildkit/issues/1896
name: Move cache
run: |
rm -rf /tmp/.buildx-cache
mv /tmp/.buildx-cache-new /tmp/.buildx-cache