mirror of
https://github.com/zitadel/zitadel.git
synced 2025-10-19 07:33:54 +00:00
chore(ci): test docker bake
This commit is contained in:
48
docker-bake.hcl
Normal file
48
docker-bake.hcl
Normal file
@@ -0,0 +1,48 @@
|
||||
variable "GITHUB_SHA" {
|
||||
default = "latest"
|
||||
}
|
||||
|
||||
variable "REGISTRY" {
|
||||
default = "ghcr.io/zitadel"
|
||||
}
|
||||
|
||||
group "generate" {
|
||||
targets = ["console-base"]
|
||||
}
|
||||
|
||||
group "unit-test" {
|
||||
targets = ["core-unit-test"]
|
||||
}
|
||||
|
||||
target "console-base" {
|
||||
target = "console-base"
|
||||
cache-from = ["type=gha,scope=console-base"]
|
||||
cache-to = ["type=gha,mode=max,scope=console-base"]
|
||||
}
|
||||
|
||||
target "console-builder" {
|
||||
target = "console-builder"
|
||||
cache-from = ["type=gha,scope=console-builder"]
|
||||
cache-to = ["type=gha,mode=max,scope=console-builder"]
|
||||
}
|
||||
|
||||
target "console" {
|
||||
target = "console"
|
||||
tags = [
|
||||
"${REGISTRY}/console:${GITHUB_SHA}",
|
||||
]
|
||||
cache-from = ["type=gha,scope=console"]
|
||||
cache-to = ["type=gha,mode=max,scope=console"]
|
||||
}
|
||||
|
||||
target "core-base" {
|
||||
target = "core-base"
|
||||
cache-from = ["type=gha,scope=core-base"]
|
||||
cache-to = ["type=gha,mode=max,scope=core-base"]
|
||||
}
|
||||
|
||||
target "core-unit-test" {
|
||||
target = "core-unit-test"
|
||||
cache-from = ["type=gha,scope=core-unit-test"]
|
||||
cache-to = ["type=gha,mode=max,scope=core-unit-test"]
|
||||
}
|
Reference in New Issue
Block a user