-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathdocker-bake.hcl
More file actions
57 lines (48 loc) · 1.01 KB
/
docker-bake.hcl
File metadata and controls
57 lines (48 loc) · 1.01 KB
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
variable "NODE_VERSION" {
default = null
}
variable "NODE_TEST_VERSION" {
default = null
}
group "default" {
targets = ["dist", "types"]
}
group "test-all" {
targets = ["lint", "test", "test-integration"]
}
group "all" {
targets = ["dist", "types", "lint", "test", "test-integration"]
}
target "dist" {
target = "dist"
output = ["./dist"]
}
target "types" {
target = "types"
output = ["./lib/types"]
}
target "lint" {
target = "lint"
output = ["type=cacheonly"]
}
target "test" {
target = "test"
extra-hosts = {
"host.docker.internal" = "host-gateway"
}
output = ["./out/test"]
}
target "test-integration" {
name = "test-integration-node-v${NODE_VERSION}"
target = "test-integration"
matrix = {
NODE_VERSION = ["18", "20", "22"]
}
args = {
NODE_TEST_VERSION = "${NODE_VERSION}"
}
extra-hosts = {
"host.docker.internal" = "host-gateway"
}
output = ["./out/test-integration/node-v${NODE_VERSION}"]
}