-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-bake.hcl
58 lines (52 loc) · 1.24 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
group "default" {
targets = ["test", "test_package", "lint"]
}
// TODO: integration
py_versions = ["3.9", "3.10", "3.11", "3.12", "3.13"]
target "test" {
name = "test_py${replace(py, ".", "")}"
matrix = {
py = py_versions,
}
args = {
PYTHON_VER = py == "latest" ? "slim" : "${py}-slim"
}
target = "test"
no-cache-filter = ["test"]
output = ["type=cacheonly"]
}
target "test_package" {
name = "test_package_py${replace(py, ".", "")}"
matrix = {
py = py_versions,
}
args = {
PYTHON_VER = py == "latest" ? "slim" : "${py}-slim"
}
target = "test-package"
no-cache-filter = ["test-package"]
output = ["type=cacheonly"]
}
target "lint" {
name = "lint-${lint_type}"
matrix = {
lint_type = ["check", "format", "mypy"],
}
args = {
PYTHON_VER = "slim"
}
target = "lint-${lint_type}"
no-cache-filter = ["lint-setup"]
output = ["type=cacheonly"]
}
target "dev" {
name = "dev_py${replace(py, ".", "")}"
matrix = {
py = py_versions,
}
inherits = ["test_py${replace(py, ".", "")}"]
no-cache-filter = []
output = []
target = "poetry"
tags = ["v8serialize-dev:py${replace(py, ".", "")}"]
}