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.

Publish signed pacman repositories with each release

fbdb3818bc53560d022234c741c539e59c82bc41 · Keenan Nemetz · 14d ago · parent fd86ba87

Publish signed pacman repositories with each release

Build Arch packages with the same nfpm contents, publish one pacman database per architecture, and sign the packages and databases with the release key. repo-add stamps tar entries from the clock, so the databases are repacked with the tag time before signing. The maintainer script becomes post_install/post_upgrade bodies, so it no longer exits the shell. Document pacman-key, SigLevel, installation, and upgrades, and build and verify the Arch tree in CI.

.vole/images/release.yaml +7−5

@@ -3,10 +3,12 @@
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; 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.
6 # apt and yum metadata; pacman-package-manager, makepkg, and libarchive-tools
7 # provide repo-add/bsdtar for the per-architecture pacman databases; rpm-common
8 # supplies the rpmrc librpm reads; gnupg and rpm sign the packages, the
9 # repository metadata, and SHA256SUMS. python3 is here for the license gate,
10 # which reads the bill of materials the release builds: a tag can point at a
11 # commit that never passed a push.
10 12 version: 1
11 13 from: golang:1.27.4-bookworm@sha256:4fa7c968ba93f1635670522dbb01a2c78150443e1385746924566079f36570ea
12 14 env:
@@ -23,7 +25,7 @@ run:
23 25 # libraries have to be installable beside the amd64 ones. Debian's archive
24 26 # carries both, so adding the architecture is enough.
25 27 - 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 rpm gnupg libsqlite3-dev:amd64 gcc-aarch64-linux-gnu libsqlite3-dev:arm64 && rm -rf /var/lib/apt/lists/*
28 - apt-get update && apt-get install -y --no-install-recommends git ca-certificates gcc python3 dpkg-dev createrepo-c pacman-package-manager makepkg libarchive-tools zstd rpm-common rpm gnupg libsqlite3-dev:amd64 gcc-aarch64-linux-gnu libsqlite3-dev:arm64 && rm -rf /var/lib/apt/lists/*
27 29 # The test step spawns ssh and ssh-keygen, which call getpwuid() and exit 255
28 30 # with "No user exists for uid N" when the container runs as the host's uid and
29 31 # the image has no passwd entry for it. Same reason, same entry as the verify