1
0
Fork 0
mirror of https://github.com/librenms/docker.git synced 2026-01-23 02:14:48 +00:00
librenms-docker/docker-bake.hcl
CrazyMax 36aa1601a4
Move to docker/metadata-action (#199)
Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
2021-05-11 00:03:55 +02:00

35 lines
620 B
HCL

variable "DEFAULT_TAG" {
default = "librenms:local"
}
// Special target: https://github.com/docker/metadata-action#bake-definition
target "docker-metadata-action" {
tags = ["${DEFAULT_TAG}"]
}
// Default target if none specified
group "default" {
targets = ["image-local"]
}
target "image" {
inherits = ["docker-metadata-action"]
}
target "image-local" {
inherits = ["image"]
output = ["type=docker"]
}
target "image-all" {
inherits = ["image"]
platforms = [
"linux/amd64",
"linux/arm/v6",
"linux/arm/v7",
"linux/arm64",
"linux/386",
"linux/ppc64le",
"linux/s390x"
]
}