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
|
name: onepassword-connect
|
||||||
target:
|
target:
|
||||||
name: actions-runner-controller-auth-secret
|
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:
|
dataFrom:
|
||||||
- extract:
|
- extract:
|
||||||
# github_app_id, github_app_installation_id, github_app_private_key
|
|
||||||
key: actions-runner-controller
|
key: actions-runner-controller
|
||||||
|
@@ -15,9 +15,7 @@ spec:
|
|||||||
kind: HelmRepository
|
kind: HelmRepository
|
||||||
name: actions-runner-controller
|
name: actions-runner-controller
|
||||||
namespace: flux-system
|
namespace: flux-system
|
||||||
maxHistory: 2
|
|
||||||
install:
|
install:
|
||||||
createNamespace: true
|
|
||||||
crds: CreateReplace
|
crds: CreateReplace
|
||||||
remediation:
|
remediation:
|
||||||
retries: 3
|
retries: 3
|
||||||
|
@@ -15,9 +15,7 @@ spec:
|
|||||||
kind: HelmRepository
|
kind: HelmRepository
|
||||||
name: actions-runner-controller
|
name: actions-runner-controller
|
||||||
namespace: flux-system
|
namespace: flux-system
|
||||||
maxHistory: 2
|
|
||||||
install:
|
install:
|
||||||
createNamespace: true
|
|
||||||
remediation:
|
remediation:
|
||||||
retries: 3
|
retries: 3
|
||||||
upgrade:
|
upgrade:
|
||||||
@@ -26,28 +24,32 @@ spec:
|
|||||||
retries: 3
|
retries: 3
|
||||||
uninstall:
|
uninstall:
|
||||||
keepHistory: false
|
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:
|
values:
|
||||||
runnerScaleSetName: arc-runner-set-home-ops
|
runnerScaleSetName: arc-runner-set-home-ops
|
||||||
githubConfigUrl: https://github.com/auricom/home-ops
|
githubConfigUrl: https://github.com/auricom/home-ops
|
||||||
minRunners: 1
|
minRunners: 1
|
||||||
maxRunners: 3
|
maxRunners: 6
|
||||||
containerMode:
|
containerMode:
|
||||||
type: dind
|
type: dind
|
||||||
template:
|
template:
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: runner
|
- name: runner
|
||||||
image: ghcr.io/onedr0p/github-actions-runner:rolling@sha256:97b74a2c9ae3f573e5168a247d3e0a14bd18aaf1e7b1003192090f4a089a8c07
|
image: ghcr.io/actions/actions-runner:2.311.0
|
||||||
valuesFrom:
|
command: ["/home/runner/run.sh"]
|
||||||
- kind: Secret
|
controllerServiceAccount:
|
||||||
name: actions-runner-controller-auth-secret
|
name: actions-runner-controller-gha-rs-controller
|
||||||
valuesKey: github_app_id
|
namespace: actions-runner-system
|
||||||
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
|
|
||||||
|
Reference in New Issue
Block a user