diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 72bc0ba..2876c22 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -32,8 +32,14 @@ jobs: - name: Build and push image uses: https://github.com/docker/build-push-action@4a13e500e55cf31b7a5d59a38ab2040ab0f42f56 # v5.1.0 with: + context: . platforms: linux/amd64 push: true tags: git.toast-server.net/toast/kon:main - cache-to: type=local,dest=/tmp/.buildx-cache + cache-to: type=local,dest=/tmp/.buildx-cache-kon cache-from: type=local,src=/tmp/.buildx-cache,mode=max + + - name: Rotate cache + run: | + rm -rf /tmp/.buildx-cache && \ + mv /tmp/.buildx-cache-kon /tmp/.buildx-cache