moby/docker-bake.hcl
CrazyMax 170049225c
ci: add cross job in ci workflow
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-04-10 21:03:54 +02:00

37 lines
582 B
HCL

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"
}