Files
authelia-controller/docker-bake.hcl
Dreaded_X 83cf48b2a9
All checks were successful
Build and deploy / build (push) Successful in 7m51s
feat: Cache docker builds
2025-12-23 03:38:36 +01:00

39 lines
695 B
HCL

variable "TAG_BASE" {}
variable "RELEASE_VERSION" {}
group "default" {
targets = ["authelia-controller", "manifests"]
}
target "docker-metadata-action" {}
target "cache" {
cache-from = [
{
type = "gha",
}
]
cache-to = [
{
type = "gha",
mode = "max"
}
]
}
target "authelia-controller" {
inherits = ["docker-metadata-action", "cache"]
context = "./"
dockerfile = "Dockerfile"
tags = [for tag in target.docker-metadata-action.tags : "${TAG_BASE}:${tag}"]
target = "runtime"
}
target "manifests" {
inherits = ["cache"]
context = "./"
dockerfile = "Dockerfile"
target = "manifests"
output = [{ type = "cacheonly" }, "manifests"]
}