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"] }