Why: Daily stable packages need durable multi-version retention without using GitHub Pages as an ever-growing package store. Impact: Debian 13 amd64 package builds can publish to a future Spaces archive. Before/After: Before, staging replaced a Pages repository. After, Actions maintains an append-only signed APT archive with at least five years of retained builds. Technical Overview: Build and verify Debian 13 packages in Actions, incrementally merge signed APT indexes, and publish immutable packages and snapshots to an S3-compatible archive. Scheduled publishing stays disabled until DigitalOcean is ready. With the help of AI-Agents: Codex
3.4 KiB
Debian daily stable package archive
The debian daily stable workflow builds rsyslog from v8-stable for Debian
13 (trixie) on amd64. Pull requests that change the archive automation run
the same build without publishing. Scheduled publishing remains disabled until
the DigitalOcean archive is provisioned.
The workflow owns package construction, APT metadata generation, signing, upload ordering, and post-publication installation verification. DigitalOcean Spaces is passive S3-compatible storage behind its CDN; no package-building service runs there.
Archive layout and retention
The initial repository URL ends in:
/apt/daily-stable/debian/13
This leaves room for later channels, Debian and Ubuntu versions, RPM-based
distributions, and additional architectures. Debian packages and source
artifacts use immutable paths below pool/. Every run also records its
manifest, checksums, build information, and build log below:
snapshots/YYYY-MM-DD/PACKAGE_VERSION/
The APT indexes retain every published package version. The Space must not have a lifecycle rule that removes package-pool, by-hash, or snapshot objects before five years. Retention starts with the first successful publication; the workflow does not synthesize historical builds.
Only the small current Packages.xz and Sources.xz indexes are downloaded
before a publication. They are merged with the new build, so daily Actions
traffic does not grow with the full archive size. Immutable objects are
uploaded first, signed mutable metadata last, and InRelease last of all.
DigitalOcean setup contract
Create one public-read Standard Spaces bucket with object versioning enabled. Give the workflow a bucket-scoped read/write Spaces key; do not give it a DigitalOcean account API token. Enable the Spaces CDN and route the final package hostname to it.
Configure these GitHub repository variables:
DEBIAN_DAILY_STABLE_ENABLED: set totrueonly after a manual publication and installation test succeeds.DEBIAN_DAILY_STABLE_SPACE_BUCKET: Space name.DEBIAN_DAILY_STABLE_SPACE_ENDPOINT: regional S3 endpoint, for examplehttps://fra1.digitaloceanspaces.com.DEBIAN_DAILY_STABLE_SPACE_REGION: matching region, for examplefra1.DEBIAN_DAILY_STABLE_REPO_URL: public URL including/apt/daily-stable/debian/13.DEBIAN_DAILY_STABLE_GPG_FINGERPRINT: full fingerprint of the archive signing key.
Create a protected debian-daily-stable GitHub Environment and add:
DEBIAN_DAILY_STABLE_SPACE_ACCESS_KEYDEBIAN_DAILY_STABLE_SPACE_SECRET_KEYDEBIAN_DAILY_STABLE_GPG_PRIVATE_KEYDEBIAN_DAILY_STABLE_GPG_PASSPHRASE
The passphrase may be empty only if the archive key was intentionally created without one. Keep stable-release publishing in a separate environment when it is added later.
Activation
Before enabling the schedule:
- Run the workflow manually with publication disabled and review its package artifact.
- Provision the Space, CDN, DNS, signing key, variables, and secrets.
- Run it manually with publication enabled.
- Confirm that signed metadata verification and the clean Debian 13 package installation both pass.
- Set
DEBIAN_DAILY_STABLE_ENABLEDtotrue.
There is deliberately no five-year GitHub Actions artifact retention. The short-lived Actions artifact transfers one build between jobs; DigitalOcean Spaces is the durable archive.