From 103b5f89778cc8dd4186b63fa32f3816cb3cb0e2 Mon Sep 17 00:00:00 2001 From: Thord Setsaas Date: Mon, 16 Dec 2024 21:12:43 +0100 Subject: [PATCH] Cleaned up Github Actions cache option --- .github/workflows/docker-image.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index c5a9a74..37d8f4c 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -28,9 +28,8 @@ jobs: run: | docker buildx build . \ --file Dockerfile \ - --cache-from=type=registry,ref=kcapp/api:cache \ - --cache-to=type=registry,ref=kcapp/api:cache,mode=max \ - --cache-from=type=local,src=/tmp/docker-cache \ + --cache-from=type=registry,ref=kcapp/api:cache \ + --cache-to=type=registry,ref=kcapp/api:cache,mode=max \ -t kcapp/api:latest \ --platform=linux/arm,linux/arm64,linux/amd64 \ --push