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