-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-bake.hcl
92 lines (80 loc) · 2.64 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
## Groups
group "default" {
targets = [
"binaries",
]
}
group "ci-checks" {
targets = [
"ci-check--lint",
"ci-check--mod",
"ci-check--test",
"ci-check--protoc",
"ci-check--protolock",
# "ci-check--protolock-force",
]
}
## Targets
target "dockerfile" {
dockerfile = "Dockerfile"
args = {
"BUILDKIT_INLINE_CACHE" = "1"
}
}
target "binaries" {
inherits = ["dockerfile"]
target = "binaries"
output = ["."]
# cache-from = ["type=registry,ref=ghcr.io/fuzzymonkeyco/monkey:binaries"]
# TODO: cache-to
# error: cache export feature is currently not supported for docker driver
# cache-to = ["type=registry,ref=ghcr.io/fuzzymonkeyco/monkey:binaries,mode=max"]
}
target "goreleaser-dist" {
inherits = ["dockerfile"]
target = "goreleaser-dist"
output = ["./dist"]
# cache-from = ["type=registry,ref=ghcr.io/fuzzymonkeyco/monkey:goreleaser-dist"]
# cache-to = ["type=registry,ref=ghcr.io/fuzzymonkeyco/monkey:goreleaser-dist,mode=max"]
}
target "ci-check--lint" {
inherits = ["dockerfile"]
target = "ci-check--lint"
# cache-from = ["type=registry,ref=ghcr.io/fuzzymonkeyco/monkey:ci-check--lint"]
# cache-to = ["type=registry,ref=ghcr.io/fuzzymonkeyco/monkey:ci-check--lint,mode=max"]
}
target "ci-check--mod" {
inherits = ["dockerfile"]
target = "ci-check--mod"
# cache-from = ["type=registry,ref=ghcr.io/fuzzymonkeyco/monkey:ci-check--mod"]
# cache-to = ["type=registry,ref=ghcr.io/fuzzymonkeyco/monkey:ci-check--mod,mode=max"]
}
target "ci-check--test" {
inherits = ["dockerfile"]
target = "ci-check--test"
# cache-from = ["type=registry,ref=ghcr.io/fuzzymonkeyco/monkey:ci-check--test"]
# cache-to = ["type=registry,ref=ghcr.io/fuzzymonkeyco/monkey:ci-check--test,mode=max"]
}
target "ci-check--protolock" {
inherits = ["dockerfile"]
target = "ci-check--protolock"
# cache-from = ["type=registry,ref=ghcr.io/fuzzymonkeyco/monkey:ci-check--protolock"]
# cache-to = ["type=registry,ref=ghcr.io/fuzzymonkeyco/monkey:ci-check--protolock,mode=max"]
}
target "ci-check--protolock-force" {
inherits = ["dockerfile"]
target = "ci-check--protolock"
args = {
"FORCE" = "1"
}
output = ["./pkg/internal/fm/"]
# cache-from = ["type=registry,ref=ghcr.io/fuzzymonkeyco/monkey:ci-check--protolock"]
# cache-to = ["type=registry,ref=ghcr.io/fuzzymonkeyco/monkey:ci-check--protolock,mode=max"]
}
target "ci-check--protoc" {
inherits = ["dockerfile"]
target = "ci-check--protoc"
output = ["./pkg/internal/fm/"]
# cache-from = ["type=registry,ref=ghcr.io/fuzzymonkeyco/monkey:ci-check--protoc"]
# cache-to = ["type=registry,ref=ghcr.io/fuzzymonkeyco/monkey:ci-check--protoc,mode=max"]
}