-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-bake.hcl
77 lines (66 loc) · 1.71 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
variable "ROCKPOOL_REPO" {
default = "https://github.com/salsadigitalauorg/rockpool"
}
variable "ROCKPOOL_IMAGES_REPO" {
default = "ghcr.io/salsadigitalauorg/rockpool"
}
variable "K3S_VERSION_1_23" {
default = "v1.23.16-k3s1"
}
variable "K3S_VERSION_1_24" {
default = "v1.24.10-k3s1"
}
variable "K3S_VERSION_1_25" {
default = "v1.25.6-k3s1"
}
variable "NFS_GANESHA_VERSION" {
default = "V4.0.8"
}
group "k3s" {
targets = ["k3s-1_23", "k3s-1_24", "k3s-1_25"]
}
target "k3s-base" {
dockerfile = "Dockerfile.k3s"
labels = {"org.opencontainers.image.source": "${ROCKPOOL_REPO}"}
platforms = ["linux/amd64", "linux/arm64"]
}
target "k3s-1_23" {
inherits = ["k3s-base"]
tags = [
"${ROCKPOOL_IMAGES_REPO}/k3s:${K3S_VERSION_1_23}",
"${ROCKPOOL_IMAGES_REPO}/k3s:v1.23",
"${ROCKPOOL_IMAGES_REPO}/k3s:latest"
]
args = {
K3S_VERSION = "${K3S_VERSION_1_23}"
}
}
target "k3s-1_24" {
inherits = ["k3s-base"]
tags = [
"${ROCKPOOL_IMAGES_REPO}/k3s:${K3S_VERSION_1_24}",
"${ROCKPOOL_IMAGES_REPO}/k3s:v1.24"
]
args = {
K3S_VERSION = "${K3S_VERSION_1_24}"
}
}
target "k3s-1_25" {
inherits = ["k3s-base"]
tags = [
"${ROCKPOOL_IMAGES_REPO}/k3s:${K3S_VERSION_1_25}",
"${ROCKPOOL_IMAGES_REPO}/k3s:v1.25"
]
args = {
K3S_VERSION = "${K3S_VERSION_1_25}"
}
}
target "nfs-provisioner" {
dockerfile = "Dockerfile.nfs-provisioner"
tags = ["${ROCKPOOL_IMAGES_REPO}/nfs-provisioner:latest"]
labels = {"org.opencontainers.image.source": "${ROCKPOOL_REPO}"}
platforms = ["linux/amd64", "linux/arm64"]
args = {
NFS_GANESHA_VERSION = "${NFS_GANESHA_VERSION}"
}
}