variable "TAG_BASE" {} group "default" { targets = ["automation"] } target "docker-metadata-action" {} # TODO: Auto include this from the workflow target "common" { cache-from = [ { type = "gha" } ] cache-to = [ { type = "gha" mode = "max" } ] } target "automation" { inherits = ["docker-metadata-action", "common"] context = "./" dockerfile = "Dockerfile" tags = [for tag in target.docker-metadata-action.tags : "${TAG_BASE}:${tag}"] }