11variable "CONTEXT" {
2- type = string
3- default = " cmake"
2+ type = string
3+ default = " cmake"
44 description = " autotools up to v28.1.knots20250305, cmake after"
55 validation {
66 condition = contains ([" autotools" , " cmake" ], CONTEXT)
@@ -9,8 +9,8 @@ variable "CONTEXT" {
99}
1010
1111variable "RUNNER" {
12- type = string
13- default = " ubuntu-24.04"
12+ type = string
13+ default = " ubuntu-24.04"
1414 description = " Runner that built the image"
1515 validation {
1616 condition = contains ([" ubuntu-24.04" , " ubuntu-24.04-arm" ], RUNNER)
@@ -19,8 +19,8 @@ variable "RUNNER" {
1919}
2020
2121variable "VERSION" {
22- type = string
23- default = " 29.2.knots20251110"
22+ type = string
23+ default = " 29.2.knots20251110"
2424 description = " Version of Knots to build"
2525 validation {
2626 condition = contains ([
@@ -40,27 +40,32 @@ group "default" {
4040
4141target "knots" {
4242 args = {
43- KNOTS_VERSION = " ${ VERSION } "
43+ KNOTS_VERSION = VERSION
4444 }
45- context = " ${ CONTEXT } "
46- cache-to = [{type = " inline" }]
47- cache-from = [{
48- type = " registry"
49- ref = " ghcr.io/bcnbitcoinonly/bitcoin:v${ VERSION } -${ RUNNER } "
50- }]
45+ context = CONTEXT
46+ cache-to = [{ type = " inline" }]
47+ cache-from = [
48+ {
49+ type = " registry"
50+ ref = " ghcr.io/bcnbitcoinonly/bitcoin:v${ VERSION } -${ RUNNER } "
51+ }
52+ ]
5153 tags = [" ghcr.io/bcnbitcoinonly/bitcoin:v${ VERSION } -${ RUNNER } " ]
5254}
5355
5456target "miner" {
5557 args = {
56- KNOTS_VERSION = " 29.2.knots20251110 "
58+ KNOTS_VERSION = VERSION
5759 }
58- context = " miner"
59- cache-to = [{type = " inline" }]
60- cache-from = [{
61- type = " registry"
62- ref = " 1maa/bitcoin:signet-miner"
63- }]
60+ context = " cmake"
61+ cache-to = [{ type = " inline" }]
62+ cache-from = [
63+ {
64+ type = " registry"
65+ ref = " 1maa/bitcoin:signet-miner"
66+ }
67+ ]
6468 platforms = [" linux/amd64" , " linux/arm64" ]
6569 tags = [" 1maa/bitcoin:signet-miner" ]
70+ target = " signet-miner"
6671}
0 commit comments