From 24853b3cd243881e3b77de353dc823906f863f3b Mon Sep 17 00:00:00 2001 From: Elio Bischof Date: Mon, 16 Jun 2025 19:42:52 +0200 Subject: [PATCH] use cache --- docker-bake.hcl | 25 ++++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/docker-bake.hcl b/docker-bake.hcl index 2c6092b52d..ebdb72ba35 100644 --- a/docker-bake.hcl +++ b/docker-bake.hcl @@ -37,7 +37,10 @@ target "login-lint" { login-dev-base = "target:login-dev-base" } tags = ["${LOGIN_LINT_TAG}"] - output = ["type=docker"] + output = [ + "type=docker", + "type=cacheonly" + ] cache-from = ["type=gha,scope=image"] cache-to = ["type=gha,scope=image,ignore-error=true,mode=max"] } @@ -76,7 +79,10 @@ target "core-mock" { contexts = { protos = "target:proto-files" } - output = ["type=docker"] + output = [ + "type=docker", + "type=cacheonly" + ] tags = ["${CORE_MOCK_TAG}"] } @@ -89,7 +95,10 @@ target "login-test-integration" { contexts = { login-pnpm = "target:login-pnpm" } - output = ["type=docker"] + output = [ + "type=docker", + "type=cacheonly" + ] tags = ["${LOGIN_TEST_INTEGRATION_TAG}"] } @@ -102,7 +111,10 @@ target "login-test-acceptance" { contexts = { login-pnpm = "target:login-pnpm" } - output = ["type=docker"] + output = [ + "type=docker", + "type=cacheonly" + ] tags = ["${LOGIN_TEST_ACCEPTANCE_TAG}"] } @@ -117,5 +129,8 @@ target "login-standalone" { login-client = "target:login-client" } tags = ["${LOGIN_TAG}"] - output = ["type=docker"] + output = [ + "type=docker", + "type=cacheonly" + ] }