-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-bake.hcl
More file actions
43 lines (39 loc) · 1020 Bytes
/
docker-bake.hcl
File metadata and controls
43 lines (39 loc) · 1020 Bytes
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
group "default" {
targets = ["test", "lint", "test-example"]
}
target "test" {
name = "test_python-${replace(py, ".", "-")}_pydantic-settings-${replace(pydantic_settings, ".", "-")}"
matrix = {
py = ["3.8", "latest"],
pydantic_settings = ["2.0.0", "latest"],
}
args = {
PYTHON_VER = py == "latest" ? "slim" : "${py}-slim"
PYDANTIC_SETTINGS_VER = pydantic_settings == "latest" ? "" : "==${pydantic_settings}"
}
target = "test"
no-cache-filter = ["test"]
}
target "lint" {
name = "lint-${lint_type}"
matrix = {
lint_type = ["flake8", "black", "isort", "mypy"],
}
args = {
PYTHON_VER = "slim"
}
target = "lint-${lint_type}"
no-cache-filter = ["lint-${lint_type}"]
}
target "example" {
args = {
PYTHON_VER = "slim"
}
target = "example"
tags = ["file-envar-example"]
}
target "test-example" {
inherits = ["example"]
target = "test-example"
no-cache-filter = ["test-example"]
}