From ba12d6e2e9deb5340026566f378b0926a14ff958 Mon Sep 17 00:00:00 2001 From: Elio Bischof Date: Mon, 16 Jun 2025 23:58:10 +0200 Subject: [PATCH] use cache --- docker-bake.hcl | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/docker-bake.hcl b/docker-bake.hcl index bd09dddd1f..0aaa854368 100644 --- a/docker-bake.hcl +++ b/docker-bake.hcl @@ -6,6 +6,8 @@ group "default" { target "login-pnpm" { dockerfile = "dockerfiles/login-pnpm.Dockerfile" + cache-from = ["type=gha,scope=lint"] + cache-to = ["type=gha,scope=lint,ignore-error=true,mode=max"] } target "login-dev-base" { @@ -13,6 +15,8 @@ target "login-dev-base" { contexts = { login-pnpm = "target:login-pnpm" } + cache-from = ["type=gha,scope=lint"] + cache-to = ["type=gha,scope=lint,ignore-error=true,mode=max"] } variable "LOGIN_TEST_UNIT_TAG" { @@ -24,8 +28,6 @@ target "login-test-unit" { contexts = { login-client = "target:login-client" } - cache-from = ["type=gha,scope=lint"] - cache-to = ["type=gha,scope=lint,ignore-error=true,mode=max"] output = ["type=docker"] tags = ["${LOGIN_TEST_UNIT_TAG}"] } @@ -40,6 +42,8 @@ target "login-lint" { login-dev-base = "target:login-dev-base" } tags = ["${LOGIN_LINT_TAG}"] + cache-from = ["type=gha,scope=lint"] + cache-to = ["type=gha,scope=lint,ignore-error=true,mode=max"] } target "login-client" {