feat(pipeline): Test out docker layer caching

This commit is contained in:
2025-11-19 18:44:01 +01:00
parent 02d9b4f97c
commit 5b8f2cc29c
3 changed files with 10 additions and 2 deletions

View File

@@ -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'

View File

@@ -2,4 +2,4 @@
## Pipeline Triggering
Trigger count: 6
Trigger count: 7

View File

@@ -2,4 +2,4 @@
## Pipeline Triggering
Trigger count: 6
Trigger count: 7