vole
Site
Clone
Read only, no credentials:
https://rodent.software/vole.git
Write over SSH with a registered key:
git clone ssh://git@rodent.software/vole.git
Self-hosted forge that lives in your Git repo.
Keep contributor docs out of the published site
34a6094aa42dfc5760bf3b3d737887b7b093082e · Keenan Nemetz · 20d ago · parent 348a43c3
Keep contributor docs out of the published site Move load testing into DEVELOPMENT, release engineering into RELEASING, and architecture internals into a root-level design guide. Keep the operator-facing storage inventory in the configuration reference. Move workflow, image, and runner references into Reference, place LFS with collaboration, and limit Packages and upgrades to instance administration. Refs: 01M7B6X6RDYBAP3JVA5SYSA1K8
docs/packaging.md +3−59
| @@ -1,8 +1,7 @@ | |||
| 1 | 1 | # Packages and upgrades | |
| 2 | 2 | ||
| 3 | Vole releases include `.deb` and `.rpm` packages for `amd64` and `arm64`, plus | ||
| 4 | standalone Linux binaries, checksums, and an SBOM. This page describes the | ||
| 5 | installed package layout, upgrades, and Vole's own release build. For | ||
| 3 | Vole provides `.deb` and `.rpm` packages for `amd64` and `arm64`. This page | ||
| 4 | describes the installed files, service sandbox, and upgrade procedure. For | ||
| 6 | 5 | installation, see [Install](install.md). | |
| 7 | 6 | ||
| 8 | 7 | ## What the package installs | |
| @@ -78,63 +77,8 @@ older binary. Back up and test recovery before upgrading: | |||
| 78 | 77 | Upgrade the instance before its runners. See | |
| 79 | 78 | [Set up a runner § Upgrade](deploy/runner.md#upgrade). | |
| 80 | 79 | ||
| 81 | ## How Vole's release is built | ||
| 82 | |||
| 83 | `.vole/workflows/release.yaml` runs on annotated `v*` tags. It tests and scans | ||
| 84 | the tagged source, cross-compiles Linux binaries for both architectures, builds | ||
| 85 | packages with [nfpm](https://nfpm.goreleaser.com), generates an SBOM, writes | ||
| 86 | `SHA256SUMS`, and attaches the results to the tag's release. | ||
| 87 | |||
| 88 | The job requires bridge networking to download Go modules and pinned build | ||
| 89 | tools. Cross-compilation means any trusted Linux runner with the required image | ||
| 90 | can produce both architectures. | ||
| 91 | |||
| 92 | Reproduce the commands from a tagged checkout: | ||
| 93 | |||
| 94 | ```sh | ||
| 95 | git switch --detach v0.2.0 | ||
| 96 | go run ./cmd/vole workflow run release | ||
| 97 | ``` | ||
| 98 | |||
| 99 | A local workflow run checks the build in the defined container but does not | ||
| 100 | publish artifacts. The version comes from | ||
| 101 | `git describe --tags --exact-match`; an untagged checkout stops before building. | ||
| 102 | Build outputs use the tag commit time to support byte-for-byte reproduction. | ||
| 103 | |||
| 104 | ## Release contents and SBOM | ||
| 105 | |||
| 106 | A Vole release includes: | ||
| 107 | |||
| 108 | - `vole-linux-amd64` and `vole-linux-arm64`; | ||
| 109 | - Debian and RPM packages for both architectures; | ||
| 110 | - `vole-<version>.sbom.cdx.json` in CycloneDX JSON; | ||
| 111 | - `SHA256SUMS` covering every attached artifact. | ||
| 112 | |||
| 113 | The SBOM lists linked Go modules, their versions and `go.sum` hashes, the Go | ||
| 114 | toolchain, and detected license evidence. One SBOM covers both architectures | ||
| 115 | because they share a module graph. It names the `go-sqlite3` binding but cannot | ||
| 116 | identify the system `libsqlite3` version installed beside the binary; query the | ||
| 117 | operating system package for that component. | ||
| 118 | |||
| 119 | To regenerate the SBOM from a tag: | ||
| 120 | |||
| 121 | ```sh | ||
| 122 | go run github.com/CycloneDX/cyclonedx-gomod/cmd/cyclonedx-gomod@v1.9.0 \ | ||
| 123 | app -json -noserial -std -licenses -main cmd/vole -output SBOM.cdx.json . | ||
| 124 | ``` | ||
| 125 | |||
| 126 | The release workflow replaces the tool's wall-clock timestamp with the tag | ||
| 127 | commit time so rebuilding one tag produces the same SBOM. | ||
| 128 | |||
| 129 | ## Package verification in CI | ||
| 130 | |||
| 131 | `.vole/workflows/verify.yaml` builds and packages one architecture on every | ||
| 132 | branch push using the same `packaging/nfpm.yaml`. Definition, path, and unit | ||
| 133 | errors therefore fail before a release tag. `scripts/check-deploy.py` also | ||
| 134 | renders and validates the cloud-init deployment files. | ||
| 135 | |||
| 136 | 80 | ## Next | |
| 137 | 81 | ||
| 138 | - [Releases](releases.md) — create and attach project releases. | ||
| 139 | 82 | - [Operations](operations.md) — back up and restore the installed state. | |
| 140 | 83 | - [Deploy a server](deploy/index.md) — configure the packaged forge. | |
| 84 | - [Install](install.md) — install a package or standalone binary. | ||