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.
Sign release packages and repository metadata
a755e48a42fdbf5da4414169e516980e63a063f6 · Keenan Nemetz · 15d ago · parent 58ac37e0
Sign release packages and repository metadata Sign the RPMs before the yum repository reads them, sign the apt Release and yum repomd metadata, and sign SHA256SUMS for direct downloads. The key arrives as the RELEASE_GPG_KEY repository secret; a pushed tag without it fails, while a local run stays unsigned with a note. Signature time is pinned to the tag commit, or to the key creation time when that is later, so a rebuild with the same key is byte-identical.
.vole/images/release.yaml +5−5
| @@ -3,10 +3,10 @@ | |||
| 3 | 3 | # pins the base image, so a rebuild cannot pick up a different compiler. nfpm is | |
| 4 | 4 | # not installed: the steps fetch a pinned nfpm, which is also what makes | |
| 5 | 5 | # `vole workflow run release` work locally. dpkg-dev and createrepo-c write the | |
| 6 | # apt and yum metadata, and rpm-common supplies the rpmrc librpm reads, so a | ||
| 7 | # release log does not carry a spurious librpm error. python3 is here for the | ||
| 8 | # license gate, which reads the bill of materials the release builds: a tag can | ||
| 9 | # point at a commit that never passed a push. | ||
| 6 | # apt and yum metadata; rpm-common supplies the rpmrc librpm reads; gnupg and rpm | ||
| 7 | # sign the packages, the repository metadata, and SHA256SUMS. python3 is here for | ||
| 8 | # the license gate, which reads the bill of materials the release builds: a tag | ||
| 9 | # can point at a commit that never passed a push. | ||
| 10 | 10 | version: 1 | |
| 11 | 11 | from: golang:1.27.4-bookworm@sha256:4fa7c968ba93f1635670522dbb01a2c78150443e1385746924566079f36570ea | |
| 12 | 12 | env: | |
| @@ -23,7 +23,7 @@ run: | |||
| 23 | 23 | # libraries have to be installable beside the amd64 ones. Debian's archive | |
| 24 | 24 | # carries both, so adding the architecture is enough. | |
| 25 | 25 | - dpkg --add-architecture arm64 | |
| 26 | - apt-get update && apt-get install -y --no-install-recommends git ca-certificates gcc python3 dpkg-dev createrepo-c rpm-common libsqlite3-dev:amd64 gcc-aarch64-linux-gnu libsqlite3-dev:arm64 && rm -rf /var/lib/apt/lists/* | ||
| 26 | - apt-get update && apt-get install -y --no-install-recommends git ca-certificates gcc python3 dpkg-dev createrepo-c rpm-common rpm gnupg libsqlite3-dev:amd64 gcc-aarch64-linux-gnu libsqlite3-dev:arm64 && rm -rf /var/lib/apt/lists/* | ||
| 27 | 27 | # The test step spawns ssh and ssh-keygen, which call getpwuid() and exit 255 | |
| 28 | 28 | # with "No user exists for uid N" when the container runs as the host's uid and | |
| 29 | 29 | # the image has no passwd entry for it. Same reason, same entry as the verify | |