-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-bake.hcl
More file actions
58 lines (51 loc) · 911 Bytes
/
docker-bake.hcl
File metadata and controls
58 lines (51 loc) · 911 Bytes
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 "GO_VERSION" {
default = "1.25.4"
}
variable "VERSION" {
default = ""
}
variable "PACKAGER_NAME" {
default = "wpm team"
}
target "_common" {
args = {
GO_VERSION = GO_VERSION
}
}
target "_platforms" {
platforms = [
"darwin/amd64",
"darwin/arm64",
"linux/amd64",
"linux/arm/v6",
"linux/arm/v7",
"linux/arm64",
"linux/ppc64le",
"linux/riscv64",
"linux/s390x",
"windows/amd64",
"windows/arm64"
]
}
# Special target: https://github.com/docker/metadata-action#bake-definition
target "meta-helper" {}
group "default" {
targets = ["binary"]
}
target "binary" {
inherits = ["_common"]
target = "binary"
platforms = ["local"]
output = ["build"]
args = {
VERSION = VERSION
PACKAGER_NAME = PACKAGER_NAME
}
}
target "binary-cross" {
inherits = ["binary", "_platforms"]
}
target "image-cross" {
inherits = ["meta-helper", "binary-cross"]
output = ["type=image"]
}