feat(pipeline): Test out docker layer caching
This commit is contained in:
@@ -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'
|
||||
|
||||
@@ -2,4 +2,4 @@
|
||||
|
||||
## Pipeline Triggering
|
||||
|
||||
Trigger count: 6
|
||||
Trigger count: 7
|
||||
|
||||
@@ -2,4 +2,4 @@
|
||||
|
||||
## Pipeline Triggering
|
||||
|
||||
Trigger count: 6
|
||||
Trigger count: 7
|
||||
|
||||
Reference in New Issue
Block a user