chore: set up docker buildx bake

Closes #417
Closes #584
Closes #658
Closes #630

Signed-off-by: Xe Iaso <me@xeiaso.net>
This commit is contained in:
Xe Iaso
2025-07-19 04:57:42 +00:00
parent 0e0847cbeb
commit b2b7183a8f
5 changed files with 135 additions and 90 deletions

33
docker-bake.hcl Normal file
View File

@@ -0,0 +1,33 @@
variable "ALPINE_VERSION" { default = "3.22" }
variable "GITHUB_SHA" { default = "devel" }
variable "VERSION" { default = "devel-docker" }
group "default" {
targets = [
"anubis",
]
}
target "anubis" {
args = {
ALPINE_VERSION = "3.22"
VERSION = "${VERSION}"
}
context = "."
dockerfile = "./docker/anubis.Dockerfile"
platforms = [
"linux/386",
"linux/amd64",
"linux/arm64",
"linux/arm/v7",
"linux/ppc64le",
"linux/riscv64",
]
pull = true
sbom = true
provenance = true
tags = [
"ghcr.io/techarohq/anubis:${VERSION}",
"ghcr.io/techarohq/anubis:main"
]
}