From 7a3aeec0c405e48eaa50264ee662ab4ad2228bc2 Mon Sep 17 00:00:00 2001 From: Tom Scott Date: Wed, 17 Dec 2025 03:49:36 -0500 Subject: [PATCH] add docs around variables --- docker-bake.hcl | 31 ++++++++++++++----------------- readme.md | 2 +- 2 files changed, 15 insertions(+), 18 deletions(-) diff --git a/docker-bake.hcl b/docker-bake.hcl index 4a5efde..4bc1518 100644 --- a/docker-bake.hcl +++ b/docker-bake.hcl @@ -1,37 +1,34 @@ 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" } -group "edge" { - targets = ["knot-edge", "spindle-edge"] -} - -target "knot-edge" { +# +# Build the latest commit from the master branch +# +target "edge" { + name = "${APP}-edge" context = "." - target = "knot" - args = { - TAG = "master" - UID = UID - GID = GID + target = "${APP}" + matrix = { + APP = ["knot", "spindle"] } - tags = ["tngl/knot:edge"] -} - -target "spindle-edge" { - context = "." - target = "spindle" args = { TAG = "master" UID = UID GID = GID } - tags = ["tngl/spindle:edge"] + tags = ["tngl/${APP}:edge"] } +# +# Build supported legacy releases +# target "all" { name = "${APP}-${replace(TAG, ".", "-")}" context = "." diff --git a/readme.md b/readme.md index 168268d..4853453 100644 --- a/readme.md +++ b/readme.md @@ -11,7 +11,7 @@ and spindle, hosting your own repository data and CI. There is a [repository](https://hub.docker.com/r/tngl) of pre-built images for tags starting at `v1.8.0-alpha` if you prefer. -``` +```sh docker pull tngl/knot:v1.10.0-alpha docker pull tngl/spindle:v1.10.0-alpha ``` -- 2.51.2