From f353645575cddaaa087b20aa93699d5b7f194f5f Mon Sep 17 00:00:00 2001 From: Simon Cornet Date: Mon, 26 Aug 2024 17:54:08 +0200 Subject: [PATCH] [ci] feat: try to not cache docker build --- .gitea/workflows/build.yaml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) 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