From 6d51213f55ebb995d05a87699a3ae93b1ab66ede Mon Sep 17 00:00:00 2001 From: Christopher Kolstad Date: Thu, 19 Sep 2024 14:55:32 +0200 Subject: [PATCH] chore: enables github docker cache (#8187) So, since we updated to build-push-action@v6 we're now getting a nice summary of the build on the summary page of the action. It pointed out that we're caching 0% of our docker build. Since we probably change our own code more often than we change our dependencies, sharing the initial yarn install step between builds from cache seems to be a good idea. --- .github/workflows/docker_publish.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/docker_publish.yaml b/.github/workflows/docker_publish.yaml index c8192e2e1e..420fcfaf96 100644 --- a/.github/workflows/docker_publish.yaml +++ b/.github/workflows/docker_publish.yaml @@ -68,3 +68,5 @@ jobs: tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} build-args: NODE_VERSION=${{ matrix.version }} + cache-from: type=gha + cache-to: type=gha,mode=max