platforms

This commit is contained in:
Elio Bischof
2025-06-17 22:01:40 +02:00
parent ad37a71165
commit e56d6f62eb

View File

@@ -8,11 +8,12 @@ variable "BUILD_CACHE_KEY" {
default = "local" default = "local"
} }
target "default" { target "_platforms" {
platforms = ["linux/amd64"] platforms = ["linux/amd64"]
} }
target "login-pnpm" { target "login-pnpm" {
inherits = ["_platforms"]
cache-from = [ cache-from = [
{ "type": "registry", "ref": "${IMAGE_REGISTRY}/login-pnpm-buildcache:${BUILD_CACHE_KEY}" } { "type": "registry", "ref": "${IMAGE_REGISTRY}/login-pnpm-buildcache:${BUILD_CACHE_KEY}" }
# { "type": "registry", "ref": "${IMAGE_REGISTRY}/login-pnpm-buildcache:latest" }, # { "type": "registry", "ref": "${IMAGE_REGISTRY}/login-pnpm-buildcache:latest" },
@@ -21,6 +22,7 @@ target "login-pnpm" {
} }
target "login-dev-base" { target "login-dev-base" {
inherits = ["_platforms"]
cache-from = [ cache-from = [
{"type": "registry", "ref": "${IMAGE_REGISTRY}/login-dev-base-buildcache:${BUILD_CACHE_KEY}"} {"type": "registry", "ref": "${IMAGE_REGISTRY}/login-dev-base-buildcache:${BUILD_CACHE_KEY}"}
# {"type": "registry", "ref": "${IMAGE_REGISTRY}/login-dev-base-buildcache:latest"}, # {"type": "registry", "ref": "${IMAGE_REGISTRY}/login-dev-base-buildcache:latest"},
@@ -32,6 +34,7 @@ target "login-dev-base" {
} }
target "login-lint" { target "login-lint" {
inherits = ["_platforms"]
cache-from = [ cache-from = [
{"type": "registry", "ref": "${IMAGE_REGISTRY}/login-lint-buildcache:${BUILD_CACHE_KEY}"} {"type": "registry", "ref": "${IMAGE_REGISTRY}/login-lint-buildcache:${BUILD_CACHE_KEY}"}
# {"type": "registry", "ref": "${IMAGE_REGISTRY}/login-lint-buildcache:latest"}, # {"type": "registry", "ref": "${IMAGE_REGISTRY}/login-lint-buildcache:latest"},