ci(flatpak): integrate aetherpak registry publishing#2301
Open
abn wants to merge 1 commit into
Open
Conversation
Member
|
Hi @abn this is very interesting and cool! 👀 I had no idea you could do this |
Contributor
Author
|
@kantord you and me both, well till around last week 😅. It's not perfect but a significant improvement over the current options. Let me know if you'd like to try pushing this forward, happy to assist the best I can. |
032f56e to
b111511
Compare
Contributor
There was a problem hiding this comment.
Pull request overview
Note
Copilot was unable to run its full agentic suite in this review.
Adds Flatpak publishing and a branded Flatpak repository landing page, integrated into the release pipeline and Pages mirroring.
Changes:
- Introduces a Stacklok-branded HTML template for the generated Flatpak repo site.
- Uploads Flatpak bundles as CI artifacts and publishes them to GHCR on release.
- Integrates site artifact download into the Pages mirroring workflow.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 8 comments.
| File | Description |
|---|---|
| .github/workflows/templates/stacklok.html | Adds a dynamic, branded Flatpak repository landing page template consumed by the publishing workflow. |
| .github/workflows/pr-build-test.yml | Adds permissions and uploads Flatpak bundle artifacts for Linux runs. |
| .github/workflows/on-release.yml | Adds Flatpak publish job (GHCR + site index) and wires it into the release pipeline. |
| .github/workflows/mirror-to-gh-pages.yml | Downloads the generated site artifact before deploying GitHub Pages (stable only). |
b111511 to
db3d03c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
👋 With the recent changes in Flathub's acceptance policy regarding AI assistance in application code, I reckon toolhive-studio might be unlikely to be accepted there.
To address this, I'm proposing self-hosting a dedicated flatpak repository using AetherPak (GH Pages + GHCR OCI). It lets Linux users add the remote once and then receive updates natively through their software manager (Gnome Software, Discover, etc.). You can see an example of a multi-app repository hosted this way at https://abn.github.io/flatpakrepo/.
I've reused the existing flatpak build outputs in the release workflow to keep this PR additive:
stableflatpak channel.betaflatpak channel.The repository files are isolated under the
/flatpaksubpath to avoid clashing with other GitHub Pages deployments, and the landing page template is customized to match the Stacklok brand.In the future, once we have a static manifest (#454), we can drop the custom flatpak setups on the runners and simplify the workflow to use the reusable AetherPak workflow:
To set this up, you'll need:
AETHERPAK_GPG_PRIVATE_KEYandAETHERPAK_GPG_PRIVATE_KEY_PASSPHRASErepository secrets. Without these, the workflow will publish unsigned packages (current posture).Let me know what you think! And here is a screenshot of what the index will look like.
cc: @kantord (since you are working on #454)
PS: