-
Notifications
You must be signed in to change notification settings - Fork 14
/
docker-bake.hcl
64 lines (55 loc) · 1.05 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
group "default" {
targets = ["image-local"]
}
// Special target: https://github.com/docker/metadata-action#bake-definition
target "docker-metadata-action" {
tags = ["faq:local"]
}
group "validate" {
targets = ["lint"]
}
target "lint" {
target = "lint"
output = ["type=cacheonly"]
}
target "test" {
target = "test-coverage"
output = ["."]
}
target "artifact" {
target = "artifacts"
secret = ["id=GITHUB_TOKEN,env=GITHUB_TOKEN"]
output = ["./dist"]
}
target "artifact-all" {
inherits = ["artifact"]
platforms = [
"darwin/amd64",
"darwin/arm64",
"linux/amd64",
"linux/arm/v7",
"linux/arm64",
"linux/ppc64le",
"linux/riscv64",
"linux/s390x"
]
}
target "image" {
inherits = ["docker-metadata-action"]
secret = ["id=GITHUB_TOKEN,env=GITHUB_TOKEN"]
}
target "image-local" {
inherits = ["image"]
output = ["type=docker"]
}
target "image-all" {
inherits = ["image"]
platforms = [
"linux/amd64",
"linux/arm/v7",
"linux/arm64",
"linux/ppc64le",
"linux/riscv64",
"linux/s390x"
]
}