From ace42470412404d4abfbfc24ee2e1792f0b228d9 Mon Sep 17 00:00:00 2001 From: Allex Veldman Date: Thu, 17 Oct 2024 15:33:30 +0200 Subject: [PATCH] build: Use Github cache for docker build The inline cache does not seem to cache the multi-stage build. This switches to using the github actions cache instead. --- .github/workflows/publish.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index e509ffe..45a8e8a 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -82,8 +82,8 @@ jobs: with: context: ./ file: docker/Dockerfile - cache-from: type=registry,ref=ghcr.io/allexveldman/pyoci:latest - cache-to: type=inline + cache-from: type=gha + cache-to: type=gha,mode=max load: true push: ${{ inputs.publish || false }} tags: ${{ steps.meta.outputs.tags }}