1
0
Fork 0
mirror of https://github.com/librenms/docker.git synced 2026-01-23 02:14:48 +00:00

Switch to buildx bake

This commit is contained in:
CrazyMax 2021-02-02 10:31:26 +01:00
parent 6cf225069d
commit daa7f37f9c
No known key found for this signature in database
GPG key ID: 3248E46B6BB8C7F7
3 changed files with 62 additions and 14 deletions

35
docker-bake.hcl Normal file
View file

@ -0,0 +1,35 @@
variable "DEFAULT_TAG" {
default = "librenms:local"
}
// Special target: https://github.com/crazy-max/ghaction-docker-meta#bake-definition
target "ghaction-docker-meta" {
tags = ["${DEFAULT_TAG}"]
}
// Default target if none specified
group "default" {
targets = ["image-local"]
}
target "image" {
inherits = ["ghaction-docker-meta"]
}
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"
]
}