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.
packaging/nfpm.yaml +18−4
| @@ -1,7 +1,9 @@ | |||
| 1 | # nfpm builds both the .deb and the .rpm from this file. The release workflow | ||
| 2 | # renders it once per architecture, with VERSION and ARCH supplied: | ||
| 1 | # nfpm builds the .deb, .rpm, and Arch packages from this file. The release | ||
| 2 | # workflow renders it once per architecture, with VERSION and ARCH supplied. | ||
| 3 | # Arch's pkgver cannot carry a semver hyphen, so the workflow passes 0.1.0rc2 | ||
| 4 | # where Debian and RPM receive 0.1.0-rc2: | ||
| 3 | 5 | # | |
| 4 | # ARCH=amd64 VERSION=0.2.0 nfpm package -f packaging/nfpm.yaml -p deb -p rpm -t dist | ||
| 6 | # ARCH=amd64 VERSION=0.2.0 nfpm package -f packaging/nfpm.yaml -p deb -t dist | ||
| 5 | 7 | # | |
| 6 | 8 | # See docs/packaging.md. | |
| 7 | 9 | name: vole | |
| @@ -25,7 +27,8 @@ depends: | |||
| 25 | 27 | # The server shells out to git for every push, clone, and metadata write. | |
| 26 | 28 | - git | |
| 27 | 29 | # The binary is linked against the system SQLite, so each format names its own | |
| 28 | # runtime library. An override replaces the list above rather than adding to it. | ||
| 30 | # runtime library. An override replaces the list above rather than adding to it; | ||
| 31 | # Arch calls the package sqlite. | ||
| 29 | 32 | overrides: | |
| 30 | 33 | deb: | |
| 31 | 34 | depends: | |
| @@ -35,6 +38,17 @@ overrides: | |||
| 35 | 38 | depends: | |
| 36 | 39 | - git | |
| 37 | 40 | - sqlite-libs | |
| 41 | archlinux: | ||
| 42 | depends: | ||
| 43 | - git | ||
| 44 | - sqlite | ||
| 45 | archlinux: | ||
| 46 | # Arch's package metadata carries its own packager and upgrade hook. The | ||
| 47 | # maintainer script is written as a function body by nfpm, so it is also the | ||
| 48 | # post_upgrade body: the same idempotent work runs after an upgrade. | ||
| 49 | packager: Keenan Nemetz <keenan.nemetz@gmail.com> | ||
| 50 | scripts: | ||
| 51 | postupgrade: packaging/scripts/postinstall.sh | ||
| 38 | 52 | contents: | |
| 39 | 53 | - src: dist/vole-linux-${ARCH} | |
| 40 | 54 | dst: /usr/bin/vole | |