Sign in

Search issue titles and bodies, change requests and comments. Private repositories you cannot read are not included.

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

RELEASING.md +64

@@ -0,0 +1,64 @@
1 # Releasing Vole
2
3 This maintainer guide describes how Vole's own binaries, packages, checksums,
4 and SBOM are produced. For creating a release in a repository hosted by Vole,
5 see [Releases](docs/releases.md). For development setup and verification, see
6 [DEVELOPMENT.md](DEVELOPMENT.md).
7
8 ## How the release is built
9
10 `.vole/workflows/release.yaml` runs on annotated `v*` tags. It tests and scans
11 the tagged source, cross-compiles Linux binaries for both architectures, builds
12 packages with [nfpm](https://nfpm.goreleaser.com), generates an SBOM, writes
13 `SHA256SUMS`, and attaches the results to the tag's release.
14
15 The job requires bridge networking to download Go modules and pinned build
16 tools. Cross-compilation means any trusted Linux runner with the required image
17 can produce both architectures.
18
19 Reproduce the commands from a tagged checkout:
20
21 ```sh
22 git switch --detach v0.2.0
23 go run ./cmd/vole workflow run release
24 ```
25
26 A local workflow run checks the build in the defined container but does not
27 publish artifacts. The version comes from
28 `git describe --tags --exact-match`; an untagged checkout stops before building.
29 Build outputs use the tag commit time to support byte-for-byte reproduction.
30
31 ## Release contents and SBOM
32
33 A Vole release includes:
34
35 - `vole-linux-amd64` and `vole-linux-arm64`;
36 - Debian and RPM packages for both architectures;
37 - `vole-<version>.sbom.cdx.json` in CycloneDX JSON;
38 - `SHA256SUMS` covering every attached artifact.
39
40 The SBOM lists linked Go modules, their versions and `go.sum` hashes, the Go
41 toolchain, and detected license evidence. One SBOM covers both architectures
42 because they share a module graph. It names the `go-sqlite3` binding but cannot
43 identify the system `libsqlite3` version installed beside the binary; query the
44 operating system package for that component.
45
46 To regenerate the SBOM from a tag:
47
48 ```sh
49 go run github.com/CycloneDX/cyclonedx-gomod/cmd/cyclonedx-gomod@v1.9.0 \
50 app -json -noserial -std -licenses -main cmd/vole -output SBOM.cdx.json .
51 ```
52
53 The release workflow replaces the tool's wall-clock timestamp with the tag
54 commit time so rebuilding one tag produces the same SBOM.
55
56 ## Package verification in CI
57
58 `.vole/workflows/verify.yaml` builds and packages one architecture on every
59 branch push using the same `packaging/nfpm.yaml`. Definition, path, and unit
60 errors therefore fail before a release tag. `scripts/check-deploy.py` also
61 renders and validates the cloud-init deployment files.
62
63 See [Packages and upgrades](docs/packaging.md) for the paths and systemd units
64 the packages install.