1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/docker-bake.hcl

38 lines
582 B
HCL
Raw Normal View History

variable "BUNDLES_OUTPUT" {
default = "./bundles"
}
variable "DOCKER_CROSSPLATFORMS" {
default = ""
}
target "_common" {
args = {
BUILDKIT_CONTEXT_KEEP_GIT_DIR = 1
APT_MIRROR = "cdn-fastly.deb.debian.org"
}
}
group "default" {
targets = ["binary"]
}
target "binary" {
inherits = ["_common"]
target = "binary"
output = [BUNDLES_OUTPUT]
}
target "dynbinary" {
inherits = ["binary"]
target = "dynbinary"
}
target "cross" {
inherits = ["binary"]
args = {
CROSS = "true"
DOCKER_CROSSPLATFORMS = DOCKER_CROSSPLATFORMS
}
target = "cross"
}