-
-
Notifications
You must be signed in to change notification settings - Fork 20
/
docker-bake.hcl
74 lines (63 loc) · 1.37 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
group "default" {
targets = ["build"]
}
group "pre-checkin" {
targets = ["vendor", "format", "build"]
}
group "validate" {
targets = ["lint", "build-validate", "vendor-validate"]
}
target "build" {
dockerfile = "dev.Dockerfile"
target = "build-update"
output = ["."]
}
target "build-validate" {
dockerfile = "dev.Dockerfile"
target = "build-validate"
output = ["type=cacheonly"]
}
target "format" {
dockerfile = "dev.Dockerfile"
target = "format-update"
output = ["."]
}
target "lint" {
dockerfile = "dev.Dockerfile"
target = "lint"
output = ["type=cacheonly"]
}
target "vendor" {
dockerfile = "dev.Dockerfile"
target = "vendor-update"
output = ["."]
}
target "vendor-validate" {
dockerfile = "dev.Dockerfile"
target = "vendor-validate"
output = ["type=cacheonly"]
}
variable "GITHUB_REPOSITORY" {
default = "crazy-max/ghaction-virustotal"
}
target "test" {
dockerfile = "dev.Dockerfile"
args = {
GITHUB_REPOSITORY = GITHUB_REPOSITORY
}
target = "test-coverage"
output = ["./coverage"]
secret = [
"id=GITHUB_TOKEN,env=GITHUB_TOKEN",
"id=VT_API_KEY,env=VT_API_KEY",
"id=VT_MONITOR_API_KEY,env=VT_MONITOR_API_KEY"
]
}
target "test-local" {
inherits = ["test"]
secret = [
"id=GITHUB_TOKEN,src=.dev/.ghtoken",
"id=VT_API_KEY,src=.dev/.vtapikey",
"id=VT_MONITOR_API_KEY,src=.dev/.vtmonitorapikey"
]
}