Rotate old cache
All checks were successful
Build and push container image / build (push) Successful in 7m50s

This commit is contained in:
toast 2024-01-08 03:37:48 +11:00
parent 1698e7d42b
commit f44462064b

View File

@ -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