variable "UID" { default = "1000" description = "User ID for the git and spindle users" } variable "GID" { default = "1000" description = "Group ID for the git and spindle users" } # # Build the latest commit from the master branch # target "edge" { name = "${APP}-edge" context = "." target = "${APP}" matrix = { APP = ["knot", "spindle"] } args = { TAG = "master" UID = UID GID = GID } tags = ["tngl/${APP}:edge"] } # # Build supported legacy releases # target "all" { name = "${APP}-${replace(TAG, ".", "-")}" context = "." matrix = { APP = ["knot", "spindle"] TAG = ["v1.11.0-alpha", "v1.10.0-alpha", "v1.9.0-alpha", "v1.8.0-alpha"] } target = "${APP}" args = { TAG = "${TAG}" UID = UID GID = GID } tags = ["tngl/${APP}:${TAG}"] }