-
Notifications
You must be signed in to change notification settings - Fork 714
Expand file tree
/
Copy pathdocker-bake.hcl
More file actions
57 lines (49 loc) · 1011 Bytes
/
docker-bake.hcl
File metadata and controls
57 lines (49 loc) · 1011 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
variable "COVER_FILENAME" {
default = null
}
variable "GO_VERSION" {
default = null
}
target "default" {
targets = ["build"]
}
target "_all_platforms" {
platforms = [
"linux/amd64",
"linux/arm64",
"linux/arm/v7",
"linux/arm/v6",
"linux/386",
"linux/ppc64le",
"linux/s390x",
"linux/riscv64",
"darwin/amd64",
"darwin/arm64",
"windows/amd64",
"windows/arm64",
]
}
target "build" {
output = ["type=cacheonly"]
args = {
GO_VERSION = GO_VERSION
}
}
target "build-all" {
inherits = ["build", "_all_platforms"]
}
target "test" {
target = "test"
args = {
COVER_FILENAME = COVER_FILENAME
GO_VERSION = GO_VERSION
}
output = [COVER_FILENAME != null ? "." : "type=cacheonly"]
}
target "lint" {
dockerfile = "hack/dockerfiles/lint.Dockerfile"
output = ["type=cacheonly"]
}
target "lint-all" {
inherits = ["lint", "_all_platforms"]
}