mirror of
https://github.com/auricom/home-cluster.git
synced 2025-09-17 18:24:14 +02:00
🚑 actions-runner-controller
This commit is contained in:
@@ -11,7 +11,17 @@ spec:
|
||||
name: onepassword-connect
|
||||
target:
|
||||
name: actions-runner-controller-auth-secret
|
||||
template:
|
||||
engineVersion: v2
|
||||
data:
|
||||
ACTION_RUNNER_CONTROLLER_GITHUB_APP_ID: |-
|
||||
{{ .ACTION_RUNNER_CONTROLLER_GITHUB_APP_ID }}
|
||||
ACTION_RUNNER_CONTROLLER_GITHUB_INSTALLATION_ID: |-
|
||||
{{ .ACTION_RUNNER_CONTROLLER_GITHUB_INSTALLATION_ID }}
|
||||
ACTION_RUNNER_CONTROLLER_GITHUB_PRIVATE_KEY: |-
|
||||
{{ .ACTION_RUNNER_CONTROLLER_GITHUB_PRIVATE_KEY }}
|
||||
ACTION_RUNNER_CONTROLLER_GITHUB_WEBHOOK_SECRET_TOKEN: |-
|
||||
{{ .ACTION_RUNNER_CONTROLLER_GITHUB_WEBHOOK_SECRET_TOKEN }}
|
||||
dataFrom:
|
||||
- extract:
|
||||
# github_app_id, github_app_installation_id, github_app_private_key
|
||||
key: actions-runner-controller
|
||||
|
@@ -15,9 +15,7 @@ spec:
|
||||
kind: HelmRepository
|
||||
name: actions-runner-controller
|
||||
namespace: flux-system
|
||||
maxHistory: 2
|
||||
install:
|
||||
createNamespace: true
|
||||
crds: CreateReplace
|
||||
remediation:
|
||||
retries: 3
|
||||
|
@@ -15,9 +15,7 @@ spec:
|
||||
kind: HelmRepository
|
||||
name: actions-runner-controller
|
||||
namespace: flux-system
|
||||
maxHistory: 2
|
||||
install:
|
||||
createNamespace: true
|
||||
remediation:
|
||||
retries: 3
|
||||
upgrade:
|
||||
@@ -26,28 +24,32 @@ spec:
|
||||
retries: 3
|
||||
uninstall:
|
||||
keepHistory: false
|
||||
valuesFrom:
|
||||
- targetPath: githubConfigSecret.github_app_id
|
||||
kind: Secret
|
||||
name: actions-runner-controller-auth-secret
|
||||
valuesKey: ACTION_RUNNER_CONTROLLER_GITHUB_APP_ID
|
||||
- targetPath: githubConfigSecret.github_app_installation_id
|
||||
kind: Secret
|
||||
name: actions-runner-controller-auth-secret
|
||||
valuesKey: ACTION_RUNNER_CONTROLLER_GITHUB_INSTALLATION_ID
|
||||
- targetPath: githubConfigSecret.github_app_private_key
|
||||
kind: Secret
|
||||
name: actions-runner-controller-auth-secret
|
||||
valuesKey: ACTION_RUNNER_CONTROLLER_GITHUB_PRIVATE_KEY
|
||||
values:
|
||||
runnerScaleSetName: arc-runner-set-home-ops
|
||||
githubConfigUrl: https://github.com/auricom/home-ops
|
||||
minRunners: 1
|
||||
maxRunners: 3
|
||||
maxRunners: 6
|
||||
containerMode:
|
||||
type: dind
|
||||
template:
|
||||
spec:
|
||||
containers:
|
||||
- name: runner
|
||||
image: ghcr.io/onedr0p/github-actions-runner:rolling@sha256:97b74a2c9ae3f573e5168a247d3e0a14bd18aaf1e7b1003192090f4a089a8c07
|
||||
valuesFrom:
|
||||
- kind: Secret
|
||||
name: actions-runner-controller-auth-secret
|
||||
valuesKey: github_app_id
|
||||
targetPath: githubConfigSecret.github_app_id
|
||||
- kind: Secret
|
||||
name: actions-runner-controller-auth-secret
|
||||
valuesKey: github_app_installation_id
|
||||
targetPath: githubConfigSecret.github_app_installation_id
|
||||
- kind: Secret
|
||||
name: actions-runner-controller-auth-secret
|
||||
valuesKey: github_app_private_key
|
||||
targetPath: githubConfigSecret.github_app_private_key
|
||||
image: ghcr.io/actions/actions-runner:2.311.0
|
||||
command: ["/home/runner/run.sh"]
|
||||
controllerServiceAccount:
|
||||
name: actions-runner-controller-gha-rs-controller
|
||||
namespace: actions-runner-system
|
||||
|
Reference in New Issue
Block a user