ci(release): bundle the latest release APK into non-tag :latest builds #100

Merged
bvandeusen merged 1 commits from dev into main 2026-06-14 22:55:23 -04:00
Owner

Every main push moves :latest, but main builds don't build an APK — so the in-app update channel silently vanished from :latest until the next tag.

image-release now, on non-tag builds, pulls the most-recent release's signed APK from the gitea API and reconstructs its exact versionName (${TAG#v}.$(git rev-list --count TAG) — the same formula android-release bakes in) for the version sidecar. No rebuild, just rebundle; tag builds still bundle their own freshly-built APK. Degrades to an empty client/ (404 update channel) — never a wrong version — if no release / APK asset / tag count can be resolved.

Merging this triggers a main build that re-points :latest at an image carrying the v2026.06.12 APK.

🤖 Generated with Claude Code

Every main push moves `:latest`, but main builds don't build an APK — so the in-app update channel silently vanished from `:latest` until the next tag. `image-release` now, on non-tag builds, pulls the most-recent release's signed APK from the gitea API and reconstructs its exact `versionName` (`${TAG#v}.$(git rev-list --count TAG)` — the same formula `android-release` bakes in) for the version sidecar. No rebuild, just rebundle; tag builds still bundle their own freshly-built APK. Degrades to an empty `client/` (404 update channel) — never a wrong version — if no release / APK asset / tag count can be resolved. Merging this triggers a main build that re-points `:latest` at an image carrying the v2026.06.12 APK. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
bvandeusen added 1 commit 2026-06-14 22:55:18 -04:00
Every main push moves :latest, but main builds don't build an APK — so the
in-app update channel silently vanished from :latest until the next tag.

Now the image-release job, on non-tag builds, pulls the most-recent
release's signed APK from the gitea API and reconstructs its exact
versionName (${TAG#v}.$(git rev-list --count TAG) — the same formula
android-release bakes in) for the version sidecar. No rebuild, just
rebundle; tag builds still bundle their own freshly-built APK. Checkout
gains fetch-depth:0 + fetch-tags so the commit count resolves. Degrades to
an empty client/ (404 update channel) — never a wrong version — if no
release / APK asset / tag count can be resolved.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
bvandeusen merged commit 93365cb555 into main 2026-06-14 22:55:23 -04:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: bvandeusen/minstrel#100