Skip to content

Commit caf1244

Browse files
committed
chore(test): add selfhosted runner for e2e tests
1 parent f7f2df2 commit caf1244

2 files changed

Lines changed: 55 additions & 1 deletion

File tree

.github/workflows/_reusable-e2e.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ env:
1616

1717
jobs:
1818
deploy:
19-
runs-on: ubuntu-24.04
19+
runs-on: [self-hosted, linux, upcloud-csi]
2020
steps:
2121
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
2222

deploy/github-runner/values.yaml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
---
2+
# GitHub Actions Runner Controller — Runner Scale Set configuration
3+
#
4+
# Prerequisites:
5+
# 1. Install the controller (one-time per cluster):
6+
# helm upgrade --install arc \
7+
# oci://ghcr.io/actions/actions-runner-controller-charts/gha-runner-scale-set-controller \
8+
# --namespace arc-system --create-namespace
9+
#
10+
# 2. Install the runner scale set (per repository):
11+
# helm upgrade --install upcloud-csi-runner \
12+
# oci://ghcr.io/actions/actions-runner-controller-charts/gha-runner-scale-set \
13+
# --namespace arc-runners --create-namespace \
14+
# --values deploy/github-runner/values.yaml \
15+
# --set githubConfigSecret.github_token=$GITHUB_PAT
16+
#
17+
# Requires a PAT with repo scope, or a GitHub App installation.
18+
# See: https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners-with-actions-runner-controller
19+
20+
# Repository-level runner (change to org-level URL if preferred)
21+
githubConfigUrl: "https://github.com/upcloud-tools/upcloud-csi"
22+
23+
# Runner labels for workflow targeting
24+
scaleSetLabels:
25+
- self-hosted
26+
- linux
27+
- upcloud-csi
28+
29+
# Authentication via GitHub PAT (alternative: GitHub App)
30+
# githubConfigSecret:
31+
# github_token: ""
32+
33+
# Reference the controller service account explicitly to avoid discovery issues
34+
controllerServiceAccount:
35+
namespace: arc-system
36+
name: arc-gha-rs-controller
37+
38+
# Autoscaling limits
39+
maxRunners: 10
40+
minRunners: 1
41+
42+
# Runner pod configuration
43+
template:
44+
spec:
45+
containers:
46+
- name: runner
47+
image: ghcr.io/actions/actions-runner:latest
48+
command: ["/home/runner/run.sh"]
49+
resources:
50+
requests:
51+
cpu: "1"
52+
memory: "2Gi"
53+
limits:
54+
memory: "4Gi"

0 commit comments

Comments
 (0)