-
Notifications
You must be signed in to change notification settings - Fork 23
/
docker-bake.hcl
42 lines (37 loc) · 977 Bytes
/
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
variable "TAG" { default = "latest" }
variable "VERSION" { default = "latest" }
variable "BUILD_DATE" { default = "" }
variable "REGISTRY" { default = "rakwireless/udp-packet-forwarder" }
group "default" {
targets = ["armv7hf", "aarch64", "amd64"]
}
target "armv7hf" {
tags = ["${REGISTRY}:armv7hf-latest"]
args = {
"ARCH" = "armv7hf",
"TAG" = "${TAG}",
"VERSION" = "${VERSION}",
"BUILD_DATE" = "${BUILD_DATE}"
}
platforms = ["linux/arm/v7"]
}
target "aarch64" {
tags = ["${REGISTRY}:aarch64-latest"]
args = {
"ARCH" = "aarch64",
"TAG" = "${TAG}",
"VERSION" = "${VERSION}",
"BUILD_DATE" = "${BUILD_DATE}"
}
platforms = ["linux/arm64"]
}
target "amd64" {
tags = ["${REGISTRY}:amd64-latest"]
args = {
"ARCH" = "amd64",
"TAG" = "${TAG}",
"VERSION" = "${VERSION}",
"BUILD_DATE" = "${BUILD_DATE}"
}
platforms = ["linux/amd64"]
}