From 5b8f2cc29c37fb37b3c742dbebffa69a9d6196dc Mon Sep 17 00:00:00 2001 From: Denis Lugowski Date: Wed, 19 Nov 2025 18:44:01 +0100 Subject: [PATCH] feat(pipeline): Test out docker layer caching --- .gitea/workflows/pipeline.yaml | 8 ++++++++ legalconsenthub-backend/README.md | 2 +- legalconsenthub/README.md | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/pipeline.yaml b/.gitea/workflows/pipeline.yaml index ca73a9f..d02c748 100644 --- a/.gitea/workflows/pipeline.yaml +++ b/.gitea/workflows/pipeline.yaml @@ -20,6 +20,8 @@ on: jobs: frontend: runs-on: ubuntu-latest + env: + RUNNER_TOOL_CACHE: /toolcache defaults: run: working-directory: ./legalconsenthub @@ -99,6 +101,8 @@ jobs: platforms: linux/amd64 tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} + cache-from: type=local,src=/tmp/.buildx-cache + cache-to: type=local,dest=/tmp/.buildx-cache - name: Image built successfully if: gitea.event_name == 'push' && gitea.ref == 'refs/heads/main' @@ -114,6 +118,8 @@ jobs: backend: runs-on: ubuntu-latest + env: + RUNNER_TOOL_CACHE: /toolcache services: postgres: @@ -199,6 +205,8 @@ jobs: platforms: linux/amd64 tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} + cache-from: type=local,src=/tmp/.buildx-cache + cache-to: type=local,dest=/tmp/.buildx-cache - name: Image built successfully if: gitea.event_name == 'push' && gitea.ref == 'refs/heads/main' diff --git a/legalconsenthub-backend/README.md b/legalconsenthub-backend/README.md index b481fea..507bd93 100644 --- a/legalconsenthub-backend/README.md +++ b/legalconsenthub-backend/README.md @@ -2,4 +2,4 @@ ## Pipeline Triggering -Trigger count: 6 +Trigger count: 7 diff --git a/legalconsenthub/README.md b/legalconsenthub/README.md index ba399be..02125e4 100644 --- a/legalconsenthub/README.md +++ b/legalconsenthub/README.md @@ -2,4 +2,4 @@ ## Pipeline Triggering -Trigger count: 6 +Trigger count: 7