-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-bake.hcl
47 lines (41 loc) · 1.11 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
variable "REPO_NAME" {
default = "druidfi/donn"
}
variable "VERSION" {
default = "1.2"
}
group "default" {
targets = ["donn-node-18", "donn-node-20", "donn-node-22"]
}
target "common" {
platforms = ["linux/amd64", "linux/arm64"]
context = "."
labels = {
"org.opencontainers.image.url" = "https://github.com/druidfi/donn"
"org.opencontainers.image.source" = "https://github.com/druidfi/donn"
"org.opencontainers.image.licenses" = "MIT"
"org.opencontainers.image.vendor" = "Druid Oy"
"org.opencontainers.image.created" = "${timestamp()}"
}
}
target "donn-node-18" {
inherits = ["common"]
args = {
NODE_VERSION = 18
}
tags = ["${REPO_NAME}:node-18", "${REPO_NAME}:${VERSION}-node-18"]
}
target "donn-node-20" {
inherits = ["common"]
args = {
NODE_VERSION = 20
}
tags = ["${REPO_NAME}:node-20", "${REPO_NAME}:${VERSION}-node-20"]
}
target "donn-node-22" {
inherits = ["common"]
args = {
NODE_VERSION = 22
}
tags = ["${REPO_NAME}:node-22", "${REPO_NAME}:${VERSION}-node-22", "${REPO_NAME}:latest"]
}