-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-bake.hcl
70 lines (59 loc) · 1.09 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
variable "DEFAULT_TAG" {
default = "discord-bot:local"
}
// GitHub reference as defined in GitHub Actions (eg. refs/head/master)
variable "GITHUB_REF" {
default = ""
}
target "git-ref" {
args = {
GIT_REF = GITHUB_REF
}
}
target "docker-metadata-action" {
tags = ["${DEFAULT_TAG}"]
}
group "default" {
targets = ["image-local"]
}
target "artifact" {
inherits = ["git-ref"]
target = "artifact"
output = ["./dist"]
}
target "artifact-all" {
inherits = ["artifact"]
platforms = [
"linux/amd64",
"linux/arm/v7",
"linux/arm64",
"windows/amd64",
"darwin/arm64",
"darwin/amd64"
]
}
target "image" {
inherits = ["git-ref", "docker-metadata-action"]
}
target "image-local" {
inherits = ["image"]
output = ["type=docker"]
}
target "image-all" {
inherits = ["image"]
platforms = [
"linux/amd64",
"linux/arm/v7",
"linux/arm64"
]
}
target "lint" {
dockerfile = "./hack/lint.Dockerfile"
target = "lint"
output = ["type=cacheonly"]
}
target "test" {
dockerfile = "./hack/test.Dockerfile"
target = "test-coverage"
output = ["./coverage"]
}