From 36f41178e337c66a1509d0ee4ef743a8cbeccbe9 Mon Sep 17 00:00:00 2001 From: steebchen Date: Wed, 11 Sep 2024 15:45:14 -0400 Subject: [PATCH] Add Docker build cache to publish workflow Enhanced the Docker build step by adding caching mechanisms. This will optimize build times and make the CI/CD process more efficient by leveraging local build caches. --- .github/workflows/publish.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 3117404..901f48a 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -57,6 +57,8 @@ jobs: with: context: . file: ./Dockerfile + cache-from: type=local,src=/tmp/.buildx-cache + cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max push: true tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }}