Cut GitHub Actions CI costs 10x with ephemeral self-hosted EC2 runners

gist.github.com22 min read

This article outlines a practical migration guide and template for cutting GitHub Actions CI costs by approximately 10x using ephemeral self-hosted EC2 spot runners in an AWS account. The setup utilizes an open-source Terraform module, a pre-built Packer image with pre-installed tools for faster job startup, and a custom spot-reclaim retry workflow. The author also provides a Python script to estimate repository savings based on historical workflow runs. Open article →