From 9cde09709f54843ab52e2276c72ace1f07caf02f Mon Sep 17 00:00:00 2001 From: Antoine BERNIER Date: Sat, 10 Aug 2024 22:36:10 +0200 Subject: [PATCH] docker cache --- .github/workflows/docker.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index f5e0b02a..468c69cb 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -34,6 +34,11 @@ jobs: with: images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} + - uses: int128/docker-build-cache-config-action@v1 + id: cache + with: + image: ghcr.io/${{ github.repository }}/cache + - name: Build and push Docker image id: push uses: docker/build-push-action@v6 @@ -42,6 +47,8 @@ jobs: push: true tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} + cache-from: ${{ steps.cache.outputs.cache-from }} + cache-to: ${{ steps.cache.outputs.cache-to }} - name: Generate artifact attestation uses: actions/attest-build-provenance@v1