fix: support .env file
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2021-09-10 18:37:05 +02:00
parent fbb66d867b
commit 286e8945a2
4 changed files with 41 additions and 5 deletions

View File

@ -13,6 +13,10 @@ stringData:
{{- $_ := set .Values.config "DRONE_NAMESPACE_DEFAULT" .Release.Namespace -}}
{{- end -}}
{{- if and (not (hasKey .Values.config "DRONE_RUNNER_ENV_FILE")) (hasKey .Values.envFile "content") }}
{{- $_ := set .Values.config "DRONE_RUNNER_ENV_FILE" "/tmp/drone-runner/drone.conf" -}}
{{- end }}
{{/* SETUP CONFIG */}}
{{ range $key, $value := .Values.config }}
{{ upper $key}}: {{ quote $value }}