From 34c17ea16752810a74552cc2b1f008aa98795868 Mon Sep 17 00:00:00 2001 From: Liam Date: Mon, 27 Mar 2023 21:05:26 +0100 Subject: [PATCH] Update '.gitea/workflows/publish.yaml' --- .gitea/workflows/publish.yaml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.gitea/workflows/publish.yaml b/.gitea/workflows/publish.yaml index 8746a0c..0f1e2fb 100644 --- a/.gitea/workflows/publish.yaml +++ b/.gitea/workflows/publish.yaml @@ -26,6 +26,14 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2 + - name: Cache Docker layers + uses: actions/cache@v2 + with: + path: /tmp/.buildx-cache + key: ${{ runner.os }}-buildx-${{ github.sha }} + restore-keys: | + ${{ runner.os }}-buildx- + - name: Login to Repo uses: docker/login-action@v2 with: @@ -39,3 +47,10 @@ jobs: push: true context: . tags: git.fascinated.cc/fascinated/beatsaber-overlay:latest + cache-from: type=local,src=/tmp/.buildx-cache + cache-to: type=local,dest=/tmp/.buildx-cache-new + + - name: Move cache + run: | + rm -rf /tmp/.buildx-cache + mv /tmp/.buildx-cache-new /tmp/.buildx-cache