-
Notifications
You must be signed in to change notification settings - Fork 13
/
docker-bake.hcl
58 lines (48 loc) · 1.19 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
variable "MIRROR" {
default = "https://repo-ci.voidlinux.org/"
}
target "docker-metadata-action" {}
target "_common" {
inherits = ["docker-metadata-action"]
dockerfile = "Containerfile"
no-cache-filter = ["bootstrap"]
cache-to = ["type=local,dest=/tmp/buildx-cache"]
cache-from = ["type=local,src=/tmp/buildx-cache"]
args = {
"MIRROR" = "${MIRROR}"
}
}
target "_common-glibc" {
inherits = ["_common"]
platforms = ["linux/amd64", "linux/386", "linux/arm64", "linux/arm/v7", "linux/arm/v6"]
args = { "LIBC" = "glibc" }
}
target "_common-musl" {
inherits = ["_common"]
platforms = ["linux/amd64", "linux/arm64", "linux/arm/v7", "linux/arm/v6"]
args = { "LIBC" = "musl" }
}
target "void-glibc" {
inherits = ["_common-glibc"]
target = "image-default"
}
target "void-glibc-busybox" {
inherits = ["_common-glibc"]
target = "image-busybox"
}
target "void-glibc-full" {
inherits = ["_common-glibc"]
target = "image-full"
}
target "void-musl" {
inherits = ["_common-musl"]
target = "image-default"
}
target "void-musl-busybox" {
inherits = ["_common-musl"]
target = "image-busybox"
}
target "void-musl-full" {
inherits = ["_common-musl"]
target = "image-full"
}