From 563ffb21fc3efe26e097f2ed81be116702322e58 Mon Sep 17 00:00:00 2001 From: Nex Zhu Date: Tue, 12 Dec 2023 17:07:03 +0800 Subject: [PATCH] ci(root): add Docker build cache --- apps/desktop/project.json | 6 +++--- apps/web/project.json | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/apps/desktop/project.json b/apps/desktop/project.json index 2cc5a40..b370bdf 100644 --- a/apps/desktop/project.json +++ b/apps/desktop/project.json @@ -37,9 +37,9 @@ "type=edge,branch=main", "type=sha,enable={{is_default_branch}},prefix=sha-", ] - } - // "cache-from": ["type=registry,ref=daotl/web-monorepo-starter-desktop:buildcache-{{branch}}"], - // "cache-to": ["type=registry,ref=daotl/web-monorepo-starter-desktop:buildcache-{{branch}},mode=max"] + }, + "cache-from": ["type=registry,ref=daotl/web-monorepo-starter-desktop:buildcache-main"], + "cache-to": ["type=registry,ref=daotl/web-monorepo-starter-desktop:buildcache-main,mode=max"] } } } diff --git a/apps/web/project.json b/apps/web/project.json index 33b0681..ad341ca 100644 --- a/apps/web/project.json +++ b/apps/web/project.json @@ -37,9 +37,9 @@ "type=edge,branch=main", "type=sha,enable={{is_default_branch}},prefix=sha-" ] - } - // "cache-from": ["type=registry,ref=daotl/web-monorepo-starter-web:buildcache-{{branch}}"], - // "cache-to": ["type=registry,ref=daotl/web-monorepo-starter-web:buildcache-{{branch}},mode=max"] + }, + "cache-from": ["type=registry,ref=daotl/web-monorepo-starter-web:buildcache-main"], + "cache-to": ["type=registry,ref=daotl/web-monorepo-starter-web:buildcache-main,mode=max"] } } }