-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-bake.hcl
78 lines (72 loc) · 1.4 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
74
75
76
77
78
// docker-bake.hcl
target "docker-metadata-action" {
# default image/tag config(for local build)
tags = ["sksat/cargo-chef-docker:${DOCKER_BASE_TAG}-${DOCKER_META_VERSION}"]
}
target "build" {
inherits = ["docker-metadata-action"]
context = "./"
dockerfile = "Dockerfile.org"
platforms = [
"linux/amd64",
#"linux/arm/v6",
#"linux/arm/v7",
#"linux/arm64",
#"linux/386",
]
}
group "default" {
targets = [
"slim",
"buster",
"slim-buster",
"bullseye",
"slim-bullseye",
"alpine",
]
}
variable "DOCKER_META_VERSION" {
default = "latest"
}
variable "DOCKER_BASE_TAG" {
default = "latest"
}
target "multiarch-base" {
platforms = [
"linux/amd64",
#"linux/arm64",
#"linux/arm/v6",
#"linux/arm/v7",
#"linux/386",
]
}
target "base" {
inherits = ["docker-metadata-action", "multiarch-base"]
context = "./"
dockerfile = "./Dockerfile"
}
target "slim" {
inherits = ["base"]
args = { BASE_TAG = "slim" }
}
target "buster" {
inherits = ["base"]
args = { BASE_TAG = "buster" }
}
target "slim-buster" {
inherits = ["base"]
args = { BASE_TAG = "slim-buster" }
}
target "bullseye" {
inherits = ["base"]
args = { BASE_TAG = "bullseye" }
}
target "slim-bullseye" {
inherits = ["base"]
args = { BASE_TAG = "slim-bullseye" }
}
target "alpine" {
inherits = ["base"]
dockerfile = "./Dockerfile.alpine"
args = { BASE_TAG = "alpine" }
}