mirror of
https://github.com/FoxxMD/multi-scrobbler.git
synced 2026-08-12 18:23:24 +00:00
Would like to move to this to improve build time on GH Actions but its not working yet. Will also be good when GH Runners release arm nodes publicly.
30 lines
530 B
HCL
30 lines
530 B
HCL
variable "DEFAULT_TAG" {
|
|
default = "multi-scrobbler: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/arm64"
|
|
]
|
|
}
|