mirror of
https://github.com/wireadmin/wireadmin
synced 2025-01-22 20:15:29 +00:00
35 lines
600 B
HCL
35 lines
600 B
HCL
variable "DEFAULT_TAG" {
|
|
default = "wireadmin: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/s390x"
|
|
]
|
|
}
|