582b29f587
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
(cherry picked from commit b19c11621a
)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
62 lines
913 B
HCL
62 lines
913 B
HCL
variable "BUNDLES_OUTPUT" {
|
|
default = "./bundles"
|
|
}
|
|
variable "DOCKER_STATIC" {
|
|
default = "1"
|
|
}
|
|
variable "DOCKER_CROSSPLATFORMS" {
|
|
default = ""
|
|
}
|
|
|
|
target "_common" {
|
|
args = {
|
|
BUILDKIT_CONTEXT_KEEP_GIT_DIR = 1
|
|
APT_MIRROR = "cdn-fastly.deb.debian.org"
|
|
DOCKER_STATIC = DOCKER_STATIC
|
|
}
|
|
}
|
|
|
|
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"
|
|
}
|
|
|
|
#
|
|
# dev
|
|
#
|
|
|
|
variable "DEV_IMAGE" {
|
|
default = "docker-dev"
|
|
}
|
|
variable "SYSTEMD" {
|
|
default = "false"
|
|
}
|
|
|
|
target "dev" {
|
|
inherits = ["_common"]
|
|
target = "final"
|
|
args = {
|
|
SYSTEMD = SYSTEMD
|
|
}
|
|
tags = [DEV_IMAGE]
|
|
output = ["type=docker"]
|
|
}
|