Autoscaling GitHub Runners: How to Create Elastic Runners in GCP

Опубликовано: 18 Декабрь 2021
на канале: OutOfDevOps
1,713
30

In this video we are going to see how to create elastic GitHub Self Hosted Runners on demand that scale to zero when idle.
Having idle runners waiting for jobs to be executed it's a waste of resources and can be very expensive for organisations that have hundreds of runners.

We want to automatically spin-up a GitHub Self-Hosted Runners in Google Cloud Platform when a workflow is triggered. We also want to tear them down at the end of the workflow.

The more detailed tutorial can be found here: https://github.com/outofdevops/elasti...

If you've got any questions or suggestions, use the comments down below and I'll be happy to answer.

Chapters

00:00 Intro
00:46 Demo "The workflow"
01:47 Demo "Code change"
02:15 Demo "Cloud build triggered"
02:48 Demo "Compute instances created"
04:24 Demo "Runners registered"
04:49 Demo "VMs deleted"
05:27 Demo "VM configuration"
08:04 What happened?
08:21 Step by step Cloud Build
09:44 Substitution Variables in Cloud Build
10:42 Cloud Build filter on events
11:07 Step by step GitHub
12:12 Cloud Build configuration details
17:04 Conclusions


WHO AM I:
Hey friends, welcome to my YouTube channel    / outofdevops  . If you're new here my name is Anto, here I talk about software engineering and software engineers. Don't forget to comment like and subscribe 👍🏻.


YOUTUBE GEAR:
🎥 My YouTube Camera Gear - https://kit.co/outofdevops


MY SOCIAL LINKs:
🌍 My website / blog - https://www.outofdevops.com
📸 Instagram -   / outofdevops  
🐦 Twitter -   / outofdevops  
📘 Facebook -   / outofdevops  


GET IN TOUCH:
If you’d like to talk, I’d love to hear from you. Tweeting @OutOfDevOps directly will be the quickest way to get a response, but if your question is very long, feel free to email me at [email protected].


PS: Some of the links in this description are affiliate links that I get a kickback from 😜