// PART 11
Release process
Releases ride one train: merge, CI builds, CI deploys, boot records itself. This page is the timetable and the checks that prove a build arrived.
The train
- Merge to
main.git push alm main && git push origin main— the ALM push triggers CI (Forgejo, port 4747 in production, runner in thealm-cicontainer). - CI builds and deploys. The runner builds the binary and ships it via
SSH to
/opt/gbo/bin/botserveron the bot container, then restarts the service. Never copy binaries by hand; the manual transfer path exists only for a CI outage. - The boot records itself. The ops middleware writes a row to
ops_deploy_markers(version, commit, build date, deployed at) and flushes request counters toops_request_metricsevery 30 s. - Verify what is actually running.
GET /api/productreturns the version, commit and build date; the Traffic panel shows a new deploy marker.
# Watch the run until it finishes
curl -s "http://<ALM_HOST>:4747/api/v1/repos/GeneralBots/BotServer/actions/runs?per_page=1"
# After ~2 minutes: health, then the marker
sudo incus exec bot -- curl -s -o /dev/null -w '%{http_code}
' http://localhost:5858/health
psql -h localhost -U postgres -d botserver -c "SELECT version, commit_hash, build_date, deployed_at
FROM ops_deploy_markers ORDER BY deployed_at DESC LIMIT 5;"
One version everywhere
The product version lives in the root Cargo.toml (7.1.2). The release gate
(release-version) proves one version across the workspace and that the tag
is applied to the build; a v-prefixed tag maps to the bare number and drift
is detected, not forgiven.
The readiness gate
python3 scripts/prod_readiness.py runs every readiness check the repository
owns (security, SLOs, runbooks, data-restore, release version, test guards,
product profile, i18n, workflow pinning) and reports one row per check with
the issue that owns it. CI runs it as the prod-readiness job: any FAIL
fails the build. The published page is generated (--markdown); regenerate
it, never hand-edit.
Desktop and OS editions
Desktop artifacts come from the release workflow on version tags: Linux
tarball + single-file executable (+ best-effort deb/rpm/AppImage), Windows
MSI/NSIS, macOS dmg in the -macos pre-release. The desktop shell checks the
latest GitHub release at startup (at most once a day) and in Settings →
Updates → Check now; it shows a non-blocking prompt and opens the release
page — nothing is downloaded or installed silently.
Rules that keep the train safe
- Deploy forward at 2 a.m. only with the scope owner’s approval; roll back without approval.
- A migration in the release changes everything: see Rollback before you plan one.
- The botbook is not built by CI — the docs site is swapped manually
(
mdbook build, staged upload, checksum verification).