# Buildx bake definition for leveva, the daemon this workspace ships. # # docker buildx bake # build leveva (the default group) # docker buildx bake leveva # same thing # docker buildx bake --push # build + push (set REGISTRY/TAG first) # # The image builds from the repo-root context because cargo needs every workspace # member's manifest to resolve the lockfile, even when only the leveva binary is # compiled. The Dockerfile lives under docker/. # # (The faithful mechanical port's `ircd` image was retired with the port itself in # P12; recover docker/Dockerfile.ircd from git history if you need it.) variable "REGISTRY" { # Image-name prefix, e.g. "ghcr.io/xe/". Empty = bare local names. default = "registry.int.xeserv.us/shitpost/" } variable "TAG" { default = "latest" } group "default" { targets = ["leveva"] } target "leveva" { context = "." dockerfile = "docker/Dockerfile.leveva" tags = ["${REGISTRY}leveva:${TAG}"] platforms = [ "linux/amd64", "linux/arm64", "linux/ppc64le", "linux/ppc64", "linux/riscv64", ] }