cloud66-oss / trackman

Execute commands as a workflow.
Apache License 2.0
197 stars 8 forks source link

Environment variable $HOME not working for logger destination #11

Closed Wolfsrudel closed 4 years ago

Wolfsrudel commented 4 years ago

If i try using

logger:                                                                                                                                                                                                                           
  type: "file"                                                                                                                                                                                                                    
    format: "json"                                                                                                                                                                                                                  
    destination: "${HOME}/workspace/logfiles/trackman/{{ if .Step }}{{.Step.Name}}{{ else }}workflow{{ end }}.json"

it exits with

open ${HOME}/workspace/logfiles/trackman/workflow.json: no such file or directory

Is $HOME only available for workdir and command?

khash commented 4 years ago

This is also similar to the metadata expansion: only command supports this at the moment, but there is no reason not to support it for all fields

khash commented 4 years ago

This is now supported in 1.0.3