[config] Add fromYaml function
- fromYAML(str string) (map[string]interface{}, error)
- return error if unmarshalling failed
werf.yaml
...
{{- $values := .Files.Get "werf_values.yaml" | fromYaml -}} // or fromYaml (.Files.Get "werf_values.yaml")
from: {{- $values.image.from }}
werf_values.yaml
image:
from: alpine