ci/cd: tried to fix caching issue

This commit is contained in:
antifallobst 2023-12-17 22:03:45 +01:00
parent 3ca5d76682
commit 2a3fa4f2fc
Signed by: antifallobst
GPG Key ID: 2B4F402172791BAF
1 changed files with 4 additions and 4 deletions

View File

@ -18,7 +18,7 @@ jobs:
uses: docker/setup-buildx-action@v3 uses: docker/setup-buildx-action@v3
- name: Cache Docker layers - name: Cache Docker layers
uses: https://github.com/actions/cache@v3 uses: https://github.com/actions/cache/restore@v3
with: with:
path: | path: |
/tmp/.buildx-cache /tmp/.buildx-cache
@ -42,12 +42,12 @@ jobs:
push: true push: true
tags: git.nerdcult.net/nerdcult/nerdcult_admin_worker:latest tags: git.nerdcult.net/nerdcult/nerdcult_admin_worker:latest
cache-from: type=local,src=/tmp/.buildx-cache cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache-new cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max
- name: Rotate the cache - name: Rotate the cache
run: | run: |
rm -rf /tmp/.buildx-cache rm -rvf /tmp/.buildx-cache
mv /tmp/.buildx-cache-new /tmp/.buildx-cache mv -v /tmp/.buildx-cache-new /tmp/.buildx-cache
- name: Deploy - name: Deploy
env: env: