From 248dd54371b7b0c89b83cc497577f826c07d4ab4 Mon Sep 17 00:00:00 2001 From: Mirko Mollik Date: Wed, 4 Sep 2024 19:55:12 +0200 Subject: [PATCH] fix: improve docker cache Signed-off-by: Mirko Mollik --- apps/demo/project.json | 4 +++- apps/holder-backend/project.json | 4 +++- apps/issuer-backend/project.json | 4 +++- apps/issuer-frontend/project.json | 4 +++- apps/verifier-backend/project.json | 4 +++- apps/verifier-frontend/project.json | 4 +++- 6 files changed, 18 insertions(+), 6 deletions(-) diff --git a/apps/demo/project.json b/apps/demo/project.json index 417a0564..57d7ed67 100644 --- a/apps/demo/project.json +++ b/apps/demo/project.json @@ -98,7 +98,9 @@ "metadata": { "images": ["ghcr.io/openwallet-foundation-labs/credhub/demo"], "load": true, - "tags": ["latest"] + "tags": ["latest"], + "cache-from": ["type=gha"], + "cache-to": ["type=gha,mode=max"] } } } diff --git a/apps/holder-backend/project.json b/apps/holder-backend/project.json index 2261618f..003643cf 100644 --- a/apps/holder-backend/project.json +++ b/apps/holder-backend/project.json @@ -38,7 +38,9 @@ "ghcr.io/openwallet-foundation-labs/credhub/holder-backend" ], "load": true, - "tags": ["latest"] + "tags": ["latest"], + "cache-from": ["type=gha"], + "cache-to": ["type=gha,mode=max"] } } } diff --git a/apps/issuer-backend/project.json b/apps/issuer-backend/project.json index 981b9523..918b7173 100644 --- a/apps/issuer-backend/project.json +++ b/apps/issuer-backend/project.json @@ -38,7 +38,9 @@ "ghcr.io/openwallet-foundation-labs/credhub/issuer-backend" ], "load": true, - "tags": ["latest"] + "tags": ["latest"], + "cache-from": ["type=gha"], + "cache-to": ["type=gha,mode=max"] } } } diff --git a/apps/issuer-frontend/project.json b/apps/issuer-frontend/project.json index 19211a4d..ab756332 100644 --- a/apps/issuer-frontend/project.json +++ b/apps/issuer-frontend/project.json @@ -101,7 +101,9 @@ "ghcr.io/openwallet-foundation-labs/credhub/issuer-frontend" ], "load": true, - "tags": ["latest"] + "tags": ["latest"], + "cache-from": ["type=gha"], + "cache-to": ["type=gha,mode=max"] } } } diff --git a/apps/verifier-backend/project.json b/apps/verifier-backend/project.json index 1e7d2fe7..915d710e 100644 --- a/apps/verifier-backend/project.json +++ b/apps/verifier-backend/project.json @@ -38,7 +38,9 @@ "ghcr.io/openwallet-foundation-labs/credhub/verifier-backend" ], "load": true, - "tags": ["latest"] + "tags": ["latest"], + "cache-from": ["type=gha"], + "cache-to": ["type=gha,mode=max"] } } } diff --git a/apps/verifier-frontend/project.json b/apps/verifier-frontend/project.json index 75d88f28..45718936 100644 --- a/apps/verifier-frontend/project.json +++ b/apps/verifier-frontend/project.json @@ -101,7 +101,9 @@ "ghcr.io/openwallet-foundation-labs/credhub/verifier-frontend" ], "load": true, - "tags": ["latest"] + "tags": ["latest"], + "cache-from": ["type=gha"], + "cache-to": ["type=gha,mode=max"] } } }