From 7dd967be8ec33c799fe114f5a442f53a564a5d66 Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Sun, 12 Nov 2023 10:06:46 +0100 Subject: [PATCH] Build - update docker container cache setup --- .github/workflows/containers.yml | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/.github/workflows/containers.yml b/.github/workflows/containers.yml index 3d8935d6..244b4d04 100644 --- a/.github/workflows/containers.yml +++ b/.github/workflows/containers.yml @@ -96,8 +96,9 @@ jobs: tags: | ${{ secrets.DOCKER_HUB_USERNAME }}/changedetection.io:dev,ghcr.io/${{ github.repository }}:dev platforms: linux/amd64,linux/arm64,linux/arm/v6,linux/arm/v7,linux/arm/v8 - cache-from: type=local,src=/tmp/.buildx-cache - cache-to: type=local,dest=/tmp/.buildx-cache + cache-from: type=gha + cache-to: type=gha,mode=max + # Looks like this was disabled # provenance: false @@ -116,18 +117,11 @@ jobs: ${{ secrets.DOCKER_HUB_USERNAME }}/changedetection.io:latest ghcr.io/dgtlmoon/changedetection.io:latest platforms: linux/amd64,linux/arm64,linux/arm/v6,linux/arm/v7,linux/arm/v8 - cache-from: type=local,src=/tmp/.buildx-cache - cache-to: type=local,dest=/tmp/.buildx-cache + cache-from: type=gha + cache-to: type=gha,mode=max # Looks like this was disabled # provenance: false - name: Image digest run: echo step SHA ${{ steps.vars.outputs.sha_short }} tag ${{steps.vars.outputs.tag}} branch ${{steps.vars.outputs.branch}} digest ${{ steps.docker_build.outputs.digest }} - - name: Cache Docker layers - uses: actions/cache@v3 - with: - path: /tmp/.buildx-cache - key: ${{ runner.os }}-buildx-${{ github.sha }} - restore-keys: | - ${{ runner.os }}-buildx-