-
Notifications
You must be signed in to change notification settings - Fork 90
/
Copy pathdocker-bake.hcl
57 lines (50 loc) · 937 Bytes
/
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
# docker-bake.hcl
group "default" {
targets = [
"humble",
"iron",
"jazzy",
"rolling"
]
}
# Common variables
variable "REGISTRY_PREFIX" {
default = "docker.io/tiryoh/ros2-desktop-vnc"
}
# Common settings
target "common" {
dockerfile = "Dockerfile"
}
target "humble" {
inherits = ["common"]
context = "humble"
tags = [
"${REGISTRY_PREFIX}:humble",
]
platforms = ["linux/amd64", "linux/arm64"]
}
target "iron" {
inherits = ["common"]
context = "iron"
tags = [
"${REGISTRY_PREFIX}:iron"
]
platforms = ["linux/amd64", "linux/arm64"]
}
target "jazzy" {
inherits = ["common"]
context = "jazzy"
tags = [
"${REGISTRY_PREFIX}:jazzy"
"${REGISTRY_PREFIX}:latest"
]
platforms = ["linux/amd64", "linux/arm64"]
}
target "rolling" {
inherits = ["common"]
context = "rolling"
tags = [
"${REGISTRY_PREFIX}:rolling"
]
platforms = ["linux/amd64", "linux/arm64"]
}