linux-chimeraos icon indicating copy to clipboard operation
linux-chimeraos copied to clipboard

Host packages as pacman repository using GitHub Pages

Open sharkwouter opened this issue 1 year ago • 8 comments

This will make it so releases are also hosted as a pacman repository using GitHub Pages.

I did one build using it. To test this, add the following to your /etc/pacman.conf:

[linux-chimeraos]
SigLevel = Optional TrustAll
Server = https://sharkwouter.github.io/linux-chimeraos/

Then you can download the packages using the following command:

pacman -Sy linux-chimeraos linux-chimeraos-headers

I've added instructions specific for the ChimeraOS group to the README.

Before merging this PR, make sure to set the GitHub Pages source to GitHub Actions in the settings of the GitHub repo like in the image below: image

It would be possible to add signing later, but since right now packages are just downloaded using wget, I don't think that will be needed. Especially since we're using https here, so a man in the middle attack would be very hard to do anyway.

sharkwouter avatar Oct 23 '24 21:10 sharkwouter

This is very cool

pastaq avatar Oct 24 '24 02:10 pastaq

Is there a timeline on when this will get reviewed?

sharkwouter avatar Nov 19 '24 09:11 sharkwouter

Is there a timeline on when this will get reviewed?

It could be fine for me, but I don't know if this either:

  • violates github ToS
  • depletes quickly the free space

NeroReflex avatar Dec 24 '24 16:12 NeroReflex

@NeroReflex here is some info on limits on github pages: https://docs.github.com/en/pages/getting-started-with-github-pages/about-github-pages#usage-limits

If we start exceeding 100 GB of bandwidth per month, we might be asked to tone it down and we are not allowed to use pages for commercial purposes. There is also a soft limit of 1 GB for a pages site. The TOS doesn't really talk about pages. I think we should comply with all of that even if we host a repo through pages. The users should be limited to contributors and maybe our build system.

sharkwouter avatar Dec 24 '24 23:12 sharkwouter

@NeroReflex here is some info on limits on github pages: https://docs.github.com/en/pages/getting-started-with-github-pages/about-github-pages#usage-limits

If we start exceeding 100 GB of bandwidth per month, we might be asked to tone it down and we are not allowed to use pages for commercial purposes. There is also a soft limit of 1 GB for a pages site. The TOS doesn't really talk about pages. I think we should comply with all of that even if we host a repo through pages. The users should be limited to contributors and maybe our build system.

1GB limit means basically only 2 kernels... Have I understood it correctly?

NeroReflex avatar Dec 25 '24 03:12 NeroReflex

I think we could probably fit at least 5, since the packages are compressed. We only host one at a time, though. Each commit causes a new build to replace the previous one.

sharkwouter avatar Dec 25 '24 07:12 sharkwouter

I think we could probably fit at least 5, since the packages are compressed. We only host one at a time, though. Each commit causes a new build to replace the previous one.

Do you think it is possible to host the latest stable and the latest pre-release version? It would help debugging problems...

NeroReflex avatar Dec 29 '24 13:12 NeroReflex

Do you think it is possible to host the latest stable and the latest pre-release version? It would help debugging problems...

With this we can only host one version at a time.

sharkwouter avatar Feb 06 '25 09:02 sharkwouter