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.
Publish apt and yum repositories with each release
73e98b74cf29c19adeeef3b4a277016838c3debe · Keenan Nemetz · 15d ago · parent eee732ec
Publish apt and yum repositories with each release A release tree and a channel give one stable URL, but apt needs a flat Packages/Release repository and dnf needs repodata. Build both from the release packages, attach the dist tree so they sit under apt/ and yum/, cover the metadata in SHA256SUMS, and document installing and upgrading from the stable channel.
.vole/images/release.yaml +8−6
| @@ -1,10 +1,12 @@ | |||
| 1 | 1 | # The image a release build runs in. Pinned so a tag built twice builds the same | |
| 2 | 2 | # way: the tag names the exact toolchain go.mod pins (go 1.27.4) and the digest | |
| 3 | # pins the base image, so a rebuild cannot pick up a different compiler. It needs | ||
| 4 | # no packaging tools of its own: the steps fetch a pinned nfpm, which is also what | ||
| 5 | # makes `vole workflow run release` work locally. python3 is here for the license | ||
| 6 | # gate, which reads the bill of materials the release builds: a tag can point at a | ||
| 7 | # commit that never passed a push. | ||
| 3 | # pins the base image, so a rebuild cannot pick up a different compiler. nfpm is | ||
| 4 | # not installed: the steps fetch a pinned nfpm, which is also what makes | ||
| 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. | ||
| 8 | 10 | version: 1 | |
| 9 | 11 | from: golang:1.27.4-bookworm@sha256:4fa7c968ba93f1635670522dbb01a2c78150443e1385746924566079f36570ea | |
| 10 | 12 | env: | |
| @@ -21,7 +23,7 @@ run: | |||
| 21 | 23 | # libraries have to be installable beside the amd64 ones. Debian's archive | |
| 22 | 24 | # carries both, so adding the architecture is enough. | |
| 23 | 25 | - dpkg --add-architecture arm64 | |
| 24 | - apt-get update && apt-get install -y --no-install-recommends git ca-certificates gcc python3 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 libsqlite3-dev:amd64 gcc-aarch64-linux-gnu libsqlite3-dev:arm64 && rm -rf /var/lib/apt/lists/* | ||
| 25 | 27 | # The test step spawns ssh and ssh-keygen, which call getpwuid() and exit 255 | |
| 26 | 28 | # with "No user exists for uid N" when the container runs as the host's uid and | |
| 27 | 29 | # the image has no passwd entry for it. Same reason, same entry as the verify | |