mirror of
https://github.com/nestriness/nestri.git
synced 2025-12-12 16:55:37 +02:00
- Added easily doable variants for runners, with simple CI build matrix. - Added playsite in CI builds finally. - Some CI formatting and naming fixes.
33 lines
796 B
HCL
33 lines
796 B
HCL
variable "BASE_IMAGE" {
|
|
default = "docker.io/cachyos/cachyos:latest"
|
|
}
|
|
|
|
group "default" {
|
|
targets = ["runner-base", "runner-builder"]
|
|
}
|
|
|
|
target "runner-base" {
|
|
dockerfile = "containerfiles/runner-base.Containerfile"
|
|
context = "."
|
|
args = {
|
|
BASE_IMAGE = BASE_IMAGE
|
|
}
|
|
cache-from = ["type=gha,scope=runner-base-pr"]
|
|
cache-to = ["type=gha,scope=runner-base-pr,mode=max"]
|
|
tags = ["runner-base:latest"]
|
|
}
|
|
|
|
target "runner-builder" {
|
|
dockerfile = "containerfiles/runner-builder.Containerfile"
|
|
context = "."
|
|
args = {
|
|
RUNNER_BASE_IMAGE = "runner-base:latest"
|
|
}
|
|
cache-from = ["type=gha,scope=runner-builder-pr"]
|
|
cache-to = ["type=gha,scope=runner-builder-pr,mode=max"]
|
|
tags = ["runner-builder:latest"]
|
|
contexts = {
|
|
runner-base = "target:runner-base"
|
|
}
|
|
}
|