-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-bake.hcl
73 lines (63 loc) · 1.21 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
// GitHub reference as defined in GitHub Actions (eg. refs/head/master))
variable "GITHUB_REF" {
default = ""
}
target "git-ref" {
args = {
GIT_REF = GITHUB_REF
}
}
// Special target: https://github.com/crazy-max/ghaction-docker-meta#bake-definition
target "ghaction-docker-meta" {
tags = ["bake-demo:local"]
}
group "default" {
targets = ["slides"]
}
target "slides" {
dockerfile = "./slides.Dockerfile"
target = "release"
output = ["./www"]
}
target "context" {
context = "./demo"
}
target "image" {
inherits = ["context", "git-ref", "ghaction-docker-meta"]
}
target "image-local" {
inherits = ["image"]
output = ["type=docker"]
}
target "image-all" {
inherits = ["image"]
platforms = [
"linux/amd64",
"linux/arm/v6",
"linux/arm/v7",
"linux/arm64",
"linux/ppc64le"
]
}
target "artifact" {
inherits = ["context", "git-ref"]
target = "artifact"
output = ["./dist"]
}
target "artifact-all" {
inherits = ["artifact"]
platforms = [
"linux/amd64",
"linux/arm/v5",
"linux/arm/v6",
"linux/arm/v7",
"linux/arm64",
"linux/386",
"linux/ppc64le",
"windows/amd64",
"windows/386",
"darwin/amd64",
"freebsd/amd64",
"freebsd/386"
]
}