diff --git a/docker-bake.hcl b/docker-bake.hcl index 3aec3c372b..b9388aa91e 100644 --- a/docker-bake.hcl +++ b/docker-bake.hcl @@ -6,6 +6,7 @@ group "default" { target "login-pnpm" { dockerfile = "dockerfiles/login-pnpm.Dockerfile" + output = ["type=docker"] cache-from = ["type=gha,scope=login-pnpm"] cache-to = ["type=gha,scope=login-pnpm,ignore-error=true,mode=max"] } @@ -15,10 +16,26 @@ target "login-dev-base" { contexts = { login-pnpm = "target:login-pnpm" } + output = ["type=docker"] cache-from = ["type=gha,scope=login-dev-base"] cache-to = ["type=gha,scope=login-dev-base,ignore-error=true,mode=max"] } +variable "LOGIN_LINT_TAG" { + default = "login-lint:local" +} + +target "login-lint" { + dockerfile = "dockerfiles/login-lint.Dockerfile" + contexts = { + login-dev-base = "target:login-dev-base" + } + tags = ["${LOGIN_LINT_TAG}"] + output = ["type=docker"] + cache-from = ["type=gha,scope=login-lint"] + cache-to = ["type=gha,scope=login-lint,ignore-error=true,mode=max"] +} + variable "LOGIN_TEST_UNIT_TAG" { default = "login-test-unit:local" } @@ -32,20 +49,6 @@ target "login-test-unit" { tags = ["${LOGIN_TEST_UNIT_TAG}"] } -variable "LOGIN_LINT_TAG" { - default = "login-lint:local" -} - -target "login-lint" { - dockerfile = "dockerfiles/login-lint.Dockerfile" - contexts = { - login-dev-base = "target:login-dev-base" - } - tags = ["${LOGIN_LINT_TAG}"] - cache-from = ["type=gha,scope=login-lint"] - cache-to = ["type=gha,scope=login-lint,ignore-error=true,mode=max"] -} - target "login-client" { dockerfile = "dockerfiles/login-client.Dockerfile" contexts = {