Skip to content

build: publish an app only when its inputs change (core ADR-0067) - #10

Merged
bketelsen merged 2 commits into
mainfrom
lucilla/publish-on-change
Nov 2, 2026
Merged

bketelsen merged 2 commits into
mainfrom
lucilla/publish-on-change

Conversation

@frostyard-machines

@frostyard-machines frostyard-machines commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Publish an app only when its inputs change (frostyard/core#188, ADR-0067).

  • lib/inputs.sh: app_inputs APP digests build.sh, lib/deb.sh, download/verified-download.sh, apps/APP.sh and the app's own entry in download/checksums.json.
  • lib/deb.sh writes the digest as the control field Frostyard-Inputs: sha256:… (aptly copies it into Packages; checked locally with aptly 1.6.3).
  • plan.sh --packages FILE [--rebuild APP] compares the field of the newest published version (by dpkg --compare-versions) with the current digest and prints the apps to publish.
  • build.yml: new check job (shellcheck + tests/run.sh), new plan job that reads https://repository.frostyard.org/debian/dists/trixie/main/binary-amd64/Packages (a failed fetch fails the run). On main, only changed apps are built, released and requested; nothing changed means no release. Pull requests and other branches build every app and publish nothing. workflow_dispatch input rebuild forces 1 app.
  • The release check now expects exactly the planned apps and requires a valid Frostyard-Inputs field.

Not inputs: the debian:trixie image and apt packages installed during the build; use rebuild after a Debian change that matters.

First run after merge

No published version carries the field yet, so the merge publishes both apps once (expected; plan output against today's index: both changed, newest-inputs none).

Merge order

  1. ADR-0067: publish omarchy-apps packages on change, and keep the newest two core#188
  2. this PR
  3. feat: keep the newest N versions of a producer on publish (core ADR-0067) apt-publisher#27 (keep 2) — after this PR's first publication

Verification

  • bash tests/run.sh: 52 checks pass
  • shellcheck 0.11.0 clean; actionlint 1.7.12 clean

@frostyard-machines frostyard-machines added the ready-for-human Reviewed, CI green: ready for Brian to review and merge label Nov 2, 2026
@bketelsen
bketelsen merged commit 31f199e into main Nov 2, 2026
6 checks passed
@frostyard-machines
frostyard-machines deleted the lucilla/publish-on-change branch November 2, 2026 17:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-human Reviewed, CI green: ready for Brian to review and merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants