use cache

This commit is contained in:
Elio Bischof
2025-06-16 23:58:10 +02:00
parent 2c4116af0b
commit ba12d6e2e9

View File

@@ -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" {