forked from
tangled.org/knot-docker
Community maintained Docker config for the knot server
1variable "UID" {
2 default = "1000"
3 description = "User ID for the git and spindle users"
4}
5
6variable "GID" {
7 default = "1000"
8 description = "Group ID for the git and spindle users"
9}
10
11#
12# Build the latest commit from the master branch
13#
14target "edge" {
15 name = "${APP}-edge"
16 context = "."
17 target = "${APP}"
18 matrix = {
19 APP = ["knot", "spindle"]
20 }
21 args = {
22 TAG = "master"
23 UID = UID
24 GID = GID
25 }
26 tags = ["tngl/${APP}:edge"]
27}
28
29#
30# Build supported legacy releases
31#
32target "all" {
33 name = "${APP}-${replace(TAG, ".", "-")}"
34 context = "."
35 matrix = {
36 APP = ["knot", "spindle"]
37 TAG = ["v1.11.0-alpha", "v1.10.0-alpha", "v1.9.0-alpha", "v1.8.0-alpha"]
38 }
39 target = "${APP}"
40 args = {
41 TAG = "${TAG}"
42 UID = UID
43 GID = GID
44 }
45 tags = ["tngl/${APP}:${TAG}"]
46}