variable "UID" { default = "1000" } variable "GID" { default = "1000" } group "edge" { targets = ["knot-edge", "spindle-edge"] } target "knot-edge" { context = "." target = "knot" args = { TAG = "master" UID = UID GID = GID } tags = ["sachymetsu/knot:edge"] } target "spindle-edge" { context = "." target = "spindle" args = { TAG = "master" UID = UID GID = GID } tags = ["sachymetsu/spindle:edge"] } target "latest" { name = "${APP}-${replace(TAG, ".", "-")}" context = "." matrix = { APP = ["knot", "spindle"] TAG = ["v1.11.0-alpha"] } target = "${APP}" args = { TAG = "${TAG}" UID = UID GID = GID } tags = ["sachymetsu/${APP}:${TAG}"] }