aboutsummaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorJP Dillingham <jpdillingham@gmail.com>2022-04-20 23:00:44 -0500
committerJP Dillingham <jpdillingham@gmail.com>2022-04-20 23:00:44 -0500
commit0592edd190f156d61f44136770dec00dd31fa9c0 (patch)
tree5ae6609f83df2eb5c1a38389906ffa0078646e2d /.github
parenta56dfa7fa1217c9c39ca7efe98cc83b27a88ab44 (diff)
downloadslskd-0592edd190f156d61f44136770dec00dd31fa9c0.tar.gz
tweak caching
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/ci.yml13
1 files changed, 11 insertions, 2 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 68630661..fa7a39bf 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -142,7 +142,7 @@ jobs:
ghcr.io/slskd/slskd:${{ env.VERSION }}
ghcr.io/slskd/slskd:canary
cache-from: type=local,src=/tmp/.buildx-cache
- cache-to: type=local,dest=/tmp/.buildx-cache
+ cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max
- name: Build and push Release
if: startsWith(github.ref, 'refs/tags/')
@@ -162,7 +162,16 @@ jobs:
ghcr.io/slskd/slskd:canary
ghcr.io/slskd/slskd:latest
cache-from: type=local,src=/tmp/.buildx-cache
- cache-to: type=local,dest=/tmp/.buildx-cache
+ cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max
+
+ # Temp fix
+ # https://github.com/docker/build-push-action/issues/252
+ # https://github.com/moby/buildkit/issues/1896
+ - name: Move cache
+ if:
+ run: |
+ rm -rf /tmp/.buildx-cache
+ mv /tmp/.buildx-cache-new /tmp/.buildx-cache
release:
name: Create Release