forked from k3d-io/k3d
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-bake.hcl
40 lines (34 loc) · 1 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
// release group
group "release" {
targets = ["binary", "dind", "proxy", "tools"]
}
// filled by GitHub Actions
target "docker-metadata-k3d" {}
target "docker-metadata-k3d-dind" {}
target "docker-metadata-k3d-proxy" {}
target "docker-metadata-k3d-tools" {}
// default options for creating a release
target "default-release-options" {
platforms = ["linux/amd64", "linux/arm64", "linux/arm/v7"]
}
target "binary" {
inherits = ["default-release-options", "docker-metadata-k3d"]
dockerfile = "Dockerfile"
context = "."
target = "binary-only"
}
target "dind" {
inherits = ["docker-metadata-k3d-dind"] // dind does not inherit defaults, as dind base image is not available for armv7
platforms = ["linux/amd64", "linux/arm64"]
dockerfile = "Dockerfile"
context = "."
target = "dind"
}
target "proxy" {
inherits = ["default-release-options", "docker-metadata-k3d-proxy"]
context = "proxy/"
}
target "tools" {
inherits = ["default-release-options", "docker-metadata-k3d-tools"]
context = "tools/"
}