AlmaLinux / raspberry-pi

AlmaLinux Raspberry Pi
132 stars 17 forks source link

Jenkins pipeline for building RPi images #41

Closed andrewlukoshko closed 2 months ago

andrewlukoshko commented 7 months ago

Currently we're building images manually. But we need to implement Jenkins pipeline to do this automatically.

Requirements:

AlexBaranowski commented 3 months ago

@andrewlukoshko maybe instead of using Jenkins, github actions would be better. You could then create a release that will not be dependent on AWS S3 and won't generate costs. The build logs are also nice addition ;)

AlexBaranowski commented 3 months ago

Edit: https://github.com/actions/runner-images/issues/2536,

I do not mind build in container that would have appliance-builder hacked, but ATM the GH Actions do not have Linux aarch64/arm64 builder. So... NVM. Custom runner for just RPI when You have proper Jenkins with hosts that are able to build it natively is useless ATM.

codyro commented 3 months ago

Edit: https://github.com/actions/runner-images/issues/2536,

I do not mind build in container that would have appliance-builder hacked, but ATM the GH Actions do not have Linux aarch64/arm64 builder. So... NVM. Custom runner for just RPI when You have proper Jenkins with hosts that are able to build it natively is useless ATM.

https://github.blog/2024-06-03-arm64-on-github-actions-powering-faster-more-efficient-build-systems/ 😀

AlexBaranowski commented 3 months ago

@codyro Yeah, but I'm not sure if it's suitable. I would like to do that, but this need organization billing enabled and paid plan.

From post that you linked:

""" These runners are available to our customers on our GitHub Team and Enterprise Cloud plans. We expect to begin offering Arm runners for open source projects by the end of the year. Customers can begin using these runners today by creating an Arm runner in their organization/enterprise, and then updating the runs-on syntax in their GitHub Actions workflow file to call that runner name. Find out more information on how to set up Arm-hosted runners in this video or in our public documentation. To learn more about runner-per-minute pricing, check out the documentation. """

andrewlukoshko commented 3 months ago

@AlexBaranowski yes we're considering switching to GitHub Actions for this using self-hosted runner in AWS.

AlexBaranowski commented 3 months ago

@andrewlukoshko if you give me 2-3 days I could test it in my free time. I would use different host provider (hetzner -> dirty cheap). Then I could provide whole solution except host and out-of-scope for GH action configuration.

It would also test if applicance builder require virtualization cpu flags etc.