# How Bento releases pom. Lives here rather than in the daemon's config so it is # versioned with the code it describes. # # A service, not an app or a library: pom is run rather than distributed. There # is no bundle for a user to download and no crate to publish, so the release # ends at `deploy` -- the binary lands on the hosts that run it and their units # restart. kind = "service" # Two arches, two machines, built natively on each. Sando cannot do this job: # sando-daemon.toml sets build_host = "fw13" and build::run refuses to compile # anywhere else, which is the never-build-on-prod invariant and also makes Sando # single-architecture. pom needs an aarch64 binary for astra, so Sando could # never build half of this release without breaking its own rule. targets = ["linux/x86_64", "linux/aarch64"] # Workspace root carries the version. version_path = "Cargo.toml" # MNW is one .git over the server, sando, multithreaded, pom and more, each # versioned separately, so the default `v{version}` names no product in # particular here. pom and multithreaded are both at 0.4.1 as it stands, which # makes a bare `v0.4.1` ambiguous the day it is created rather than eventually. tag_format = "pom-v{version}" # Neither instance ships without the other. pom watches production, and an # aarch64 build that quietly failed while x86_64 shipped leaves half the mesh on # an old binary with nothing saying so. require_all_targets = true # Where each target lands. The recipe never names a machine -- it calls # deploy(), and the target it is already building for decides where that goes. # # install_path is /usr/local/bin/pom, which is what pom.service actually # ExecStarts and what both live hosts have today. Not /opt/pom/pom: that was # copied from mnw-cli's companion shape and matches nothing on either box. [[deploy]] target = "linux/x86_64" # Reached over Tailscale SSH on 22 as root. NOT port 2200 -- that is what the # old deploy.sh used and it refuses this machine's key for both root and max, # which is why the 0.4.0 deploy was done by hand. host = "root@100.120.174.96" install_path = "/usr/local/bin/pom" service = "pom.service" health_url = "http://100.120.174.96:9100/api/health" [[deploy]] target = "linux/aarch64" # astra builds this one and astra runs it, so the binary never leaves the box. host = "astra" install_path = "/usr/local/bin/pom" service = "pom.service" health_url = "http://100.106.221.39:9100/api/health"