diff --git a/charts/gha-runner-scale-set/templates/_helpers.tpl b/charts/gha-runner-scale-set/templates/_helpers.tpl index ef75a3f2..90bb2748 100644 --- a/charts/gha-runner-scale-set/templates/_helpers.tpl +++ b/charts/gha-runner-scale-set/templates/_helpers.tpl @@ -89,14 +89,22 @@ image: {{ $val.image }} command: ["cp"] args: ["-r", "/home/runner/externals/.", "/home/runner/tmpDir/"] volumeMounts: - - name: dind-externals + - name: -externals mountPath: /home/runner/tmpDir {{- end }} {{- end }} {{- end }} {{- define "gha-runner-scale-set.dind-container" -}} -image: docker:dind + +{{- $dindImage := "docker:dind" -}} +{{- range $i, $val := .Values.template.spec.containers }} + {{- if eq $val.name "dind" }} + {{- $dindImage = $val.image }} + {{- end }} +{{- end }} + +image: {{ $dindImage }} args: - dockerd - --host=unix:///var/run/docker.sock