forked from tonistiigi/fsutil
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-bake.hcl
58 lines (47 loc) · 957 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
58
variable "GO_VERSION" {
default = "1.13"
}
group "default" {
targets = ["build"]
}
target "build" {
args = {
GO_VERSION = "${GO_VERSION}"
}
}
group "test" {
targets = ["test-root", "test-noroot"]
}
target "test-root" {
inherits = ["build"]
target = "test"
}
target "test-noroot" {
inherits = ["build"]
target = "test-noroot"
}
target "lint" {
dockerfile = "./hack/dockerfiles/lint.Dockerfile"
}
target "validate-gomod" {
dockerfile = "./hack/dockerfiles/gomod.Dockerfile"
target = "validate"
}
target "gomod" {
inherits = ["validate-gomod"]
output = ["."]
target = "update"
}
target "validate-shfmt" {
dockerfile = "./hack/dockerfiles/shfmt.Dockerfile"
target = "validate"
}
target "shfmt" {
inherits = ["validate-shfmt"]
output = ["."]
target = "update"
}
target "cross" {
inherits = ["build"]
platforms = ["linux/amd64", "linux/386", "linux/arm64", "linux/arm", "linux/ppc64le", "linux/s390x"]
}