diff --git a/.gitea/workflows/publish.yaml b/.gitea/workflows/publish.yaml index 7cc1bb5..0454378 100644 --- a/.gitea/workflows/publish.yaml +++ b/.gitea/workflows/publish.yaml @@ -3,7 +3,7 @@ name: Publish on: push: branches: - - 'master' + - 'main' jobs: docker: @@ -22,7 +22,7 @@ jobs: uses: https://github.com/actions/cache/restore@v3 with: path: | - /usr/bin/docker + /usr/bin/docker key: ${{ runner.os }}-docker token: ${{ secrets.GH_TOKEN }} @@ -39,7 +39,7 @@ jobs: - name: Cache Docker layers uses: https://github.com/actions/cache@v2 with: - path: /opt/hostedtoolcache/buildx + path: /tmp/.buildx-cache key: ${{ runner.os }}-buildx-${{ github.sha }} restore-keys: | ${{ runner.os }}-buildx- @@ -57,10 +57,10 @@ jobs: push: true context: ./gitea-runner tags: git.fascinated.cc/fascinated/gitea-runner:ubuntu-latest - cache-from: type=local,src=/opt/hostedtoolcache/buildx - cache-to: type=local,dest=/opt/hostedtoolcache/buildx-new + cache-from: type=local,src=/tmp/.buildx-cache + cache-to: type=local,dest=/tmp/.buildx-cache-new - name: Move cache run: | - rm -rf /opt/hostedtoolcache/buildx - mv /opt/hostedtoolcache/buildx-new /opt/hostedtoolcache/buildx \ No newline at end of file + rm -rf /tmp/.buildx-cache + mv /tmp/.buildx-cache-new /tmp/.buildx-cache \ No newline at end of file