variable "REGISTRY" { default = "registry.example.com" } variable "TAG" { default = "latest" } target "_proxy" { context = "." dockerfile = "Proxy/Local/Dockerfile" } target "prod" { inherits = ["_proxy"] target = "production" tags = ["moku/work-proxy:local-prod"] } target "prod-image" { inherits = ["_proxy"] target = "production" tags = ["${REGISTRY}/moku/work-proxy:prod-${TAG}"] } group "local" { targets = ["prod"] } group "registry" { targets = ["prod-image"] } group "default" { targets = ["prod"] }