mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-12 16:17:32 +00:00
use cache
This commit is contained in:
@@ -11,6 +11,11 @@ variable "BUILD_CACHE_KEY" {
|
|||||||
target "login-pnpm" {
|
target "login-pnpm" {
|
||||||
context = "."
|
context = "."
|
||||||
dockerfile = "dockerfiles/login-pnpm.Dockerfile"
|
dockerfile = "dockerfiles/login-pnpm.Dockerfile"
|
||||||
|
cache-from = [
|
||||||
|
"type=registry,ref=${IMAGE_REGISTRY}/login-pnpm-buildcache:latest",
|
||||||
|
"type=registry,ref=${IMAGE_REGISTRY}/login-pnpm-buildcache:${BUILD_CACHE_KEY}"
|
||||||
|
]
|
||||||
|
cache-to = ["type=registry,ref=${IMAGE_REGISTRY}/login-pnpm-buildcache:${BUILD_CACHE_KEY},mode=max"]
|
||||||
}
|
}
|
||||||
|
|
||||||
target "login-dev-base" {
|
target "login-dev-base" {
|
||||||
@@ -19,6 +24,11 @@ target "login-dev-base" {
|
|||||||
contexts = {
|
contexts = {
|
||||||
login-pnpm = "target:login-pnpm"
|
login-pnpm = "target:login-pnpm"
|
||||||
}
|
}
|
||||||
|
cache-from = [
|
||||||
|
"type=registry,ref=${IMAGE_REGISTRY}/login-dev-base-buildcache:latest",
|
||||||
|
"type=registry,ref=${IMAGE_REGISTRY}/login-dev-base-buildcache:${BUILD_CACHE_KEY}"
|
||||||
|
]
|
||||||
|
cache-to = ["type=registry,ref=${IMAGE_REGISTRY}/login-dev-base-buildcache:${BUILD_CACHE_KEY},mode=max"]
|
||||||
}
|
}
|
||||||
|
|
||||||
target "login-lint" {
|
target "login-lint" {
|
||||||
@@ -28,8 +38,8 @@ target "login-lint" {
|
|||||||
login-dev-base = "target:login-dev-base"
|
login-dev-base = "target:login-dev-base"
|
||||||
}
|
}
|
||||||
cache-from = [
|
cache-from = [
|
||||||
|
"type=registry,ref=${IMAGE_REGISTRY}/login-lint-buildcache:latest",
|
||||||
"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"
|
|
||||||
]
|
]
|
||||||
cache-to = ["type=registry,ref=${IMAGE_REGISTRY}/login-lint-buildcache:${BUILD_CACHE_KEY},mode=max"]
|
cache-to = ["type=registry,ref=${IMAGE_REGISTRY}/login-lint-buildcache:${BUILD_CACHE_KEY},mode=max"]
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user