Skip to content

Commit

Permalink
feat: add env parameter to github-actions-runners (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
SweetOps authored Feb 2, 2022
1 parent 5864ea1 commit 84d2024
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/github-actions-runners/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ apiVersion: v2
name: github-actions-runners
description: A Helm chart for provisioning Github Actions runners
type: application
version: 0.1.1
version: 0.2.0
maintainers:
- name: SweetOps
4 changes: 4 additions & 0 deletions charts/github-actions-runners/templates/runnerdeployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,9 @@ spec:
{{- end }}
resources:
{{- toYaml (default $.Values.global.resources .resources) | nindent 8 }}
{{- with (default $.Values.global.env .env) }}
env:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- end }}
{{- end }}
10 changes: 9 additions & 1 deletion charts/github-actions-runners/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ global:
dockerdWithinRunnerContainer: true
labels: []

env: []
# - name: RUNNER_FEATURE_FLAG_EPHEMERAL
# value: "true"

autoscaling:
minReplicas: 0
maxReplicas: 3
Expand All @@ -45,7 +49,7 @@ global:

runnerDeployments:
- name: default
enabled: false
enabled: true
replicaCount: 1
image:
repository: summerwind/actions-runner-dind
Expand Down Expand Up @@ -108,6 +112,10 @@ runnerDeployments:

affinity: {}

env: []
# - name: RUNNER_FEATURE_FLAG_EPHEMERAL
# value: "true"

autoscaling:
enabled: false
scaleUpTriggers:
Expand Down

0 comments on commit 84d2024

Please sign in to comment.