From 8bf3498a9c140c4891a8bbb91291f49bbd1a22d3 Mon Sep 17 00:00:00 2001 From: Sebastiaan Zeeff Date: Tue, 17 Nov 2020 21:07:15 +0100 Subject: Add another cache variation --- .github/workflows/lint-test.yaml | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/.github/workflows/lint-test.yaml b/.github/workflows/lint-test.yaml index 3f0b734..1061b43 100644 --- a/.github/workflows/lint-test.yaml +++ b/.github/workflows/lint-test.yaml @@ -52,7 +52,7 @@ jobs: type=local,src=/tmp/.buildx-cache ghcr.io/python-discord/snekbox-base:latest ghcr.io/python-discord/snekbox-venv:latest - cache-to: type=local,dest=/tmp/.buildx-cache + cache-to: type=local,dest=/tmp/.buildx-cache,mode=max tags: ghcr.io/python-discord/snekbox-venv:${{ steps.sha_tag.outputs.tag }} - name: Start Container @@ -108,8 +108,6 @@ jobs: context: . file: ./docker/Dockerfile push: true - build-args: | - BUILDKIT_INLINE_CACHE=1 cache-from: | type=local,src=/tmp/.buildx-cache ghcr.io/python-discord/snekbox-base:latest @@ -125,12 +123,10 @@ jobs: file: ./docker/Dockerfile target: base push: true - build-args: | - BUILDKIT_INLINE_CACHE=1 cache-from: | type=local,src=/tmp/.buildx-cache ghcr.io/python-discord/snekbox-base:latest - cache-to: type=local,dest=/tmp/.buildx-cache + cache-to: type=inline tags: ghcr.io/python-discord/snekbox-base:latest - name: Push venv image @@ -140,11 +136,9 @@ jobs: file: ./docker/Dockerfile target: venv push: true - build-args: | - BUILDKIT_INLINE_CACHE=1 cache-from: | type=local,src=/tmp/.buildx-cache ghcr.io/python-discord/snekbox-base:latest ghcr.io/python-discord/snekbox-venv:latest - cache-to: type=local,dest=/tmp/.buildx-cache + cache-to: type=inline tags: ghcr.io/python-discord/snekbox-venv:latest -- cgit v1.2.3