mirror of
https://github.com/zitadel/zitadel.git
synced 2025-10-18 15:30:27 +00:00
working
This commit is contained in:
@@ -3,46 +3,77 @@ variable "GITHUB_SHA" {
|
||||
}
|
||||
|
||||
variable "REGISTRY" {
|
||||
default = "ghcr.io/zitadel"
|
||||
default = "ghcr.io/fforootd"
|
||||
}
|
||||
|
||||
group "generate" {
|
||||
targets = ["console-base"]
|
||||
targets = ["console-base", "core-base"]
|
||||
}
|
||||
|
||||
group "build" {
|
||||
targets = ["console-build", "core-build"]
|
||||
}
|
||||
|
||||
group "output" {
|
||||
targets = ["console-output", "core-output"]
|
||||
}
|
||||
|
||||
group "unit-test" {
|
||||
targets = ["core-unit-test"]
|
||||
}
|
||||
|
||||
group "lint" {
|
||||
targets = ["console-lint", "core-lint"]
|
||||
}
|
||||
|
||||
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-build" {
|
||||
target = "console-build"
|
||||
}
|
||||
|
||||
target "console" {
|
||||
target = "console"
|
||||
target "console-lint" {
|
||||
target = "console-lint"
|
||||
}
|
||||
|
||||
target "console-image" {
|
||||
target = "console-image"
|
||||
tags = [
|
||||
"${REGISTRY}/console:${GITHUB_SHA}",
|
||||
]
|
||||
cache-from = ["type=gha,scope=console"]
|
||||
cache-to = ["type=gha,mode=max,scope=console"]
|
||||
}
|
||||
|
||||
target "console-output" {
|
||||
target = "console-output"
|
||||
output = ["type=local,dest=.build/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-build" {
|
||||
target = "core-build"
|
||||
}
|
||||
|
||||
target "core-lint" {
|
||||
target = "core-lint"
|
||||
}
|
||||
|
||||
target "core-image" {
|
||||
target = "core-image"
|
||||
tags = [
|
||||
"${REGISTRY}/zitadel:${GITHUB_SHA}",
|
||||
]
|
||||
}
|
||||
|
||||
target "core-output" {
|
||||
target = "core-output"
|
||||
output = ["type=local,dest=.build/core"]
|
||||
}
|
||||
|
||||
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