forked from moby/swarmkit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-bake.hcl
More file actions
50 lines (40 loc) · 780 Bytes
/
Copy pathdocker-bake.hcl
File metadata and controls
50 lines (40 loc) · 780 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
variable "IMAGE_NAME" {
default = "moby/swarmkit"
}
target "dev" {
tags = [IMAGE_NAME]
output = ["type=docker"]
}
group "default" {
targets = ["validate"]
}
group "validate" {
targets = ["lint", "vendor-validate", "generate-validate"]
}
group "lint" {
targets = ["golangci-lint", "fmt-proto"]
}
target "golangci-lint" {
target = "lint"
output = ["type=cacheonly"]
}
target "fmt-proto" {
target = "fmt-proto"
output = ["type=cacheonly"]
}
target "vendor-validate" {
target = "vendor-validate"
output = ["type=cacheonly"]
}
target "vendor" {
target = "vendor-update"
output = ["."]
}
target "generate-validate" {
target = "generate-validate"
output = ["type=cacheonly"]
}
target "generate" {
target = "generate-update"
output = ["."]
}