github-actions-runners
by Snowplow
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.
| Repository | Name | Version |
|---|---|---|
| https://charts.jetstack.io | cert-manager | v1..2 |
| https://github.com/actions/actions-runner-controller/tree/master/charts/actions-runner-controller | actions-runner-controller | 0.22.0 |
| https://snowplow-devops.github.io/helm-charts | dockerconfigjson | 0.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
| Repository | Name | Version |
|---|---|---|
| https://snowplow-devops.github.io/helm-charts | dockerconfigjson | 0.1.0 |
Configuration
| Key | Type | Default | Description |
|---|---|---|---|
| image | object | {"isRepositoryPrivate":false,"pullPolicy":"IfNotPresent","runnerImage":"summerwind/actions-runner","tag":"latest"} | Define the image for the runners to be deployed with. |
| nameOverride | string | "" | Overrides the name given to the deployment (default: .Release.Name) |
| fullnameOverride | string | "" | Overrides the full-name given to the deployment resources (default: .Release.Name) |
| name | string | "github-runner-deployment" | Declare the name of the runner deployment |
| deploymentType | string | "repository" | Select Deploment type - [ repository / organization / enterprise ] |
| repositoryName | string | "example/repo" | For use with repository deployment type - Add repo for runner deployment |
| organizationName | string | "" | For use with organization deployment type |
| enterpriseName | string | "" | For use with enterprise deployment type |
| runnerLabel | string | "custom-label" | Declare the label attached to the runner deployment |
| scaleDownDelaySecondsAfterScaleOut | string | "300" | |
| minimumReplicaCount | string | "1" | Declare the minimum and maximum available runners |
| maximumReplicaCount | string | "1" | |
| scaleUpTriggerDuration | string | "10m" | Maximum time that a runner should exist after scale up activity without an assigned workflow. |
| dockerconfigjson.name | string | "snowplow-github-runner-deployment-dockerhub" | Name of the secret to use for the private repository |
| dockerconfigjson.username | string | "" | Username for the private repository |
| dockerconfigjson.password | string | "" | Password for the private repository |
| dockerconfigjson.server | string | "https://index.docker.io/v1/" | Repository server URL |
| dockerconfigjson.email | string | "" | 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartgithub-actions-runners is pinned at v0.1.2 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- 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