Personal docker image setups for Knot/Spindle
at main 730 B view raw
1variable "UID" { 2 default = "1000" 3} 4 5variable "GID" { 6 default = "1000" 7} 8 9group "edge" { 10 targets = ["knot-edge", "spindle-edge"] 11} 12 13target "knot-edge" { 14 context = "." 15 target = "knot" 16 args = { 17 TAG = "master" 18 UID = UID 19 GID = GID 20 } 21 tags = ["sachymetsu/knot:edge"] 22} 23 24target "spindle-edge" { 25 context = "." 26 target = "spindle" 27 args = { 28 TAG = "master" 29 UID = UID 30 GID = GID 31 } 32 tags = ["sachymetsu/spindle:edge"] 33} 34 35target "latest" { 36 name = "${APP}-${replace(TAG, ".", "-")}" 37 context = "." 38 matrix = { 39 APP = ["knot", "spindle"] 40 TAG = ["v1.11.0-alpha"] 41 } 42 target = "${APP}" 43 args = { 44 TAG = "${TAG}" 45 UID = UID 46 GID = GID 47 } 48 tags = ["sachymetsu/${APP}:${TAG}"] 49}