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.
Leave packaging and signing to the release workflow
d29e041ab06c93ce8b83047c4daa3bec33eb1c5d · Keenan Nemetz · 11d ago · parent 0be96824
Leave packaging and signing to the release workflow Branch CI built the .deb, .rpm and pacman packages, wrote the apt, yum and pacman repositories, signed all of it with a throwaway key and verified the signatures. Every push paid for the release path even when nothing near packaging had changed, and the same ground is covered by release.yaml on the tag. Those steps are gone. A maintainer exercises them without publishing by running the release workflow against a tagged checkout (`vole workflow run release`), which builds in the release image, uploads nothing, and says so when RELEASE_GPG_KEY is not available. The installer and deployment-file checks stay: they are shell-only checks of files a release consumes, and they are cheap. The verify image drops the tools only those steps used: dpkg-dev, createrepo-c, pacman-package-manager, makepkg, libarchive-tools, zstd, rpm and rpm-common. gnupg stays for the installer check's key fingerprint. A local run went from the release-path steps' multi-minute timeouts to 2m37s end to end.
.vole/images/verify.yaml +5−8
| @@ -1,11 +1,10 @@ | |||
| 1 | 1 | # The image .vole/workflows/verify.yaml runs in. It carries everything the steps call: the Go toolchain | |
| 2 | 2 | # (with gcc, so -race works), the SQLite development headers the driver links | |
| 3 | 3 | # against, git and the ssh client and keygen the server tests spawn, python3 for | |
| 4 | # the link check, the repository metadata build, and the documentation build, | ||
| 5 | # python3-venv for the docs environment, PyYAML for the deployment check, | ||
| 6 | # dpkg-dev and createrepo-c for the apt and yum metadata, pacman-package-manager, | ||
| 7 | # makepkg, and libarchive-tools for the pacman metadata, gnupg and rpm for the | ||
| 8 | # signing check, and rpm-common for the rpmrc librpm reads. | ||
| 4 | # the link and deployment checks, python3-venv for the docs environment, PyYAML | ||
| 5 | # for the deployment check, and gnupg for the installer check's key fingerprint. | ||
| 6 | # The packaging, repository and signing tools belong to the release image; verify | ||
| 7 | # does not run those steps. | ||
| 9 | 8 | # | |
| 10 | 9 | # The toolchain is the one go.mod pins (go 1.27.4), and the base image is pinned | |
| 11 | 10 | # by digest so the scanner and the compiler that pass a push are the ones the | |
| @@ -19,8 +18,6 @@ | |||
| 19 | 18 | # user has on Debian and Ubuntu. A runner whose user has another uid should pass | |
| 20 | 19 | # --container-user. | |
| 21 | 20 | ||
| 22 | # nfpm is not installed here: the packaging step fetches it at a pinned version, so | ||
| 23 | # that a local run and a pushed run execute the same command. | ||
| 24 | 21 | version: 1 | |
| 25 | 22 | from: golang:1.27.4-bookworm@sha256:4fa7c968ba93f1635670522dbb01a2c78150443e1385746924566079f36570ea | |
| 26 | 23 | env: | |
| @@ -32,5 +29,5 @@ env: | |||
| 32 | 29 | GOMODCACHE: "/cache/go-mod" | |
| 33 | 30 | GOCACHE: "/cache/go-build" | |
| 34 | 31 | run: | |
| 35 | - apt-get update && apt-get install -y --no-install-recommends git git-lfs openssh-client python3 python3-venv python3-yaml dpkg-dev createrepo-c pacman-package-manager makepkg libarchive-tools zstd rpm-common rpm gnupg ca-certificates && rm -rf /var/lib/apt/lists/* | ||
| 32 | - apt-get update && apt-get install -y --no-install-recommends git git-lfs openssh-client python3 python3-venv python3-yaml gnupg ca-certificates && rm -rf /var/lib/apt/lists/* | ||
| 36 | 33 | - useradd --uid 1000 --create-home --shell /bin/sh ci | |