mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
30 lines
433 B
HCL
30 lines
433 B
HCL
|
variable GO_VERSION {
|
||
|
default = "1.17"
|
||
|
}
|
||
|
|
||
|
target "_base" {
|
||
|
args = {
|
||
|
GO_VERSION = GO_VERSION
|
||
|
}
|
||
|
}
|
||
|
|
||
|
target "binary" {
|
||
|
inherits = ["_base"]
|
||
|
platforms = ["local"]
|
||
|
output = ["bin"]
|
||
|
}
|
||
|
|
||
|
target "all-arch" {
|
||
|
inherits = ["_base"]
|
||
|
platforms = [
|
||
|
"linux/amd64",
|
||
|
"linux/arm64",
|
||
|
"linux/arm",
|
||
|
"linux/riscv64",
|
||
|
"linux/386",
|
||
|
"windows/amd64",
|
||
|
"windows/arm64",
|
||
|
"darwin/amd64",
|
||
|
"darwin/arm64",
|
||
|
]
|
||
|
}
|