github-actions-runners

by Snowplow

Helm chartv0.1.2Verified publisher

A helm chart for deploying Github Self-hosted Runners

About this chart

github-actions-runners

A helm chart for managing self hosted github runners utilising Actions Runner Controller.

Further reading on this system: Actions Runner Controller - Github Pages

Prerequisite

Certificate Manager and Action Replica Controller must be installed as a pre-requisite to this chart.

RepositoryNameVersion
https://charts.jetstack.iocert-managerv1..2
https://github.com/actions/actions-runner-controller/tree/master/charts/actions-runner-controlleractions-runner-controller0.22.0
https://snowplow-devops.github.io/helm-chartsdockerconfigjson0.1.0

Installing the Chart

Add the repository to Helm:

helm repo add snowplow-devops https://snowplow-devops.github.io/helm-charts

Install or upgrading the chart with default configuration:

helm upgrade --install github-actions-runners --namespace github-runners --create-namespace --set runnerDeployment.githubRepo="example/repo" --set runnerDeployment.runnerNamespace="github-runners" snowplow-devops/github-actions-runners

The default install will use the standard summerwind/actions-runner image - should a private image be required this can be enabled via updating the values.yaml

Uninstalling the Chart

To uninstall/delete the github-actions-runners release:

helm delete github-actions-runners --namespace github-runners

Requirements

RepositoryNameVersion
https://snowplow-devops.github.io/helm-chartsdockerconfigjson0.1.0

Configuration

KeyTypeDefaultDescription
imageobject{"isRepositoryPrivate":false,"pullPolicy":"IfNotPresent","runnerImage":"summerwind/actions-runner","tag":"latest"}Define the image for the runners to be deployed with.
nameOverridestring""Overrides the name given to the deployment (default: .Release.Name)
fullnameOverridestring""Overrides the full-name given to the deployment resources (default: .Release.Name)
namestring"github-runner-deployment"Declare the name of the runner deployment
deploymentTypestring"repository"Select Deploment type - [ repository / organization / enterprise ]
repositoryNamestring"example/repo"For use with repository deployment type - Add repo for runner deployment
organizationNamestring""For use with organization deployment type
enterpriseNamestring""For use with enterprise deployment type
runnerLabelstring"custom-label"Declare the label attached to the runner deployment
scaleDownDelaySecondsAfterScaleOutstring"300"
minimumReplicaCountstring"1"Declare the minimum and maximum available runners
maximumReplicaCountstring"1"
scaleUpTriggerDurationstring"10m"Maximum time that a runner should exist after scale up activity without an assigned workflow.
dockerconfigjson.namestring"snowplow-github-runner-deployment-dockerhub"Name of the secret to use for the private repository
dockerconfigjson.usernamestring""Username for the private repository
dockerconfigjson.passwordstring""Password for the private repository
dockerconfigjson.serverstring"https://index.docker.io/v1/"Repository server URL
dockerconfigjson.emailstring""Email address for user of the private repository

Deploy github-actions-runners with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has github-actions-runners on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartgithub-actions-runners is pinned at v0.1.2 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply