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:
parent
6cf225069d
commit
daa7f37f9c
3 changed files with 62 additions and 14 deletions
35
docker-bake.hcl
Normal file
35
docker-bake.hcl
Normal 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"
|
||||
]
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue