diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 53ac4c3..b908282 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -34,9 +34,17 @@ jobs: context: '.' file: 'Dockerfile.linux.amd64' push: true - cache: false - tags: | - cr.simoncor.net/siempie/simoncor-net:latest + tags: 'cr.simoncor.net/siempie/simoncor-net:latest' + cache-from: 'type=local,src=/tmp/.buildx-cache' + cache-to: 'type=local,dest=/tmp/.buildx-cache-new,mode=max' + + # move cache - 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 # ansible deployment