-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathdocker-bake.hcl
94 lines (86 loc) · 2.38 KB
/
docker-bake.hcl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
variable "TAG" { default = "latest" }
variable "VERSION" { default = "latest" }
variable "BUILD_DATE" { default = "" }
variable "REGISTRY" { default = "xoseperez/the-things-stack" }
variable "REMOTE_TAG" { default = "3.32.0" }
group "default" {
targets = ["armv7hf", "aarch64", "amd64", "armv7hf-lite", "aarch64-lite", "amd64-lite"]
}
target "armv7hf" {
tags = ["${REGISTRY}:armv7hf-latest"]
dockerfile = "Dockerfile"
args = {
"ARCH" = "armv7hf",
"CFSSL_ARCH" = "arm",
"REMOTE_TAG" = "${REMOTE_TAG}",
"TAG" = "${TAG}",
"VERSION" = "${VERSION}",
"BUILD_DATE" = "${BUILD_DATE}"
}
platforms = ["linux/arm/v7"]
}
target "aarch64" {
tags = ["${REGISTRY}:aarch64-latest"]
dockerfile = "Dockerfile"
args = {
"ARCH" = "aarch64",
"CFSSL_ARCH" = "arm",
"REMOTE_TAG" = "${REMOTE_TAG}",
"TAG" = "${TAG}",
"VERSION" = "${VERSION}",
"BUILD_DATE" = "${BUILD_DATE}"
}
platforms = ["linux/arm64"]
}
target "amd64" {
tags = ["${REGISTRY}:amd64-latest"]
dockerfile = "Dockerfile"
args = {
"ARCH" = "amd64",
"CFSSL_ARCH" = "amd64",
"REMOTE_TAG" = "${REMOTE_TAG}",
"TAG" = "${TAG}",
"VERSION" = "${VERSION}",
"BUILD_DATE" = "${BUILD_DATE}"
}
platforms = ["linux/amd64"]
}
target "armv7hf-lite" {
tags = ["${REGISTRY}:armv7hf-latest-lite"]
dockerfile = "Dockerfile.lite"
args = {
"ARCH" = "armv7hf",
"CFSSL_ARCH" = "arm",
"REMOTE_TAG" = "${REMOTE_TAG}",
"TAG" = "${TAG}",
"VERSION" = "${VERSION}",
"BUILD_DATE" = "${BUILD_DATE}"
}
platforms = ["linux/arm/v7"]
}
target "aarch64-lite" {
tags = ["${REGISTRY}:aarch64-latest-lite"]
dockerfile = "Dockerfile.lite"
args = {
"ARCH" = "aarch64",
"CFSSL_ARCH" = "arm",
"REMOTE_TAG" = "${REMOTE_TAG}",
"TAG" = "${TAG}",
"VERSION" = "${VERSION}",
"BUILD_DATE" = "${BUILD_DATE}"
}
platforms = ["linux/arm64"]
}
target "amd64-lite" {
tags = ["${REGISTRY}:amd64-latest-lite"]
dockerfile = "Dockerfile.lite"
args = {
"ARCH" = "amd64",
"CFSSL_ARCH" = "amd64",
"REMOTE_TAG" = "${REMOTE_TAG}",
"TAG" = "${TAG}",
"VERSION" = "${VERSION}",
"BUILD_DATE" = "${BUILD_DATE}"
}
platforms = ["linux/amd64"]
}