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