From 7b3eb1356737ad8141eb1be0294c6a347b089212 Mon Sep 17 00:00:00 2001 From: Mattias Michaux Date: Sun, 7 Jan 2024 10:22:17 +0100 Subject: [PATCH] figure out caching --- .github/workflows/ci.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e967b0f..81a433f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -42,8 +42,9 @@ jobs: with: file: ${{ matrix.image_type }}/Dockerfile context: . - cache-from: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ matrix.mautic_version }}-${{ matrix.image_type }} - platforms: linux/amd64,linux/arm64 + cache-from: type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:cache-${{ matrix.mautic_version }}-${{ matrix.image_type }} + cache-to: type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:cache-${{ matrix.mautic_version }}-${{ matrix.image_type }},mode=max,image-manifest=true +# platforms: linux/amd64,linux/arm64 build-args: | MAUTIC_VERSION=${{ matrix.mautic_version }} push: true