E-Ink News Daily

Back to list

Autoscaling CI for Gitea in Rust

Rustunit has developed gitea-ci-autoscaler, a Rust-based service that automatically scales Gitea CI runners on Hetzner Cloud infrastructure. The solution addresses the cost-efficiency problem of fixed CI infrastructure by spinning up nodes only when jobs are waiting and tearing them down when idle, optimizing for Hetzner's hourly billing model. The implementation leverages Rust enums to model node lifecycles and runs within a K3s cluster with 5-second polling intervals.

Background

Gitea Actions is a CI/CD system similar to GitHub Actions but lacks built-in autoscaling capabilities for self-hosted runners. Many organizations face the trade-off between paying for idle infrastructure or experiencing queue delays during peak usage.

Source
Lobsters
Published
Mar 31, 2026 at 07:29 PM
Score
6.0 / 10