version: "3" tasks: validate: desc: Check .env for missing variables cmds: - | {{with .MISSING_VARS | trim}} echo Warning: missing vars in .env: {{range (. | splitLines)}} echo " {{. | trimSuffix "="}}" {{end}} {{end}} vars: MISSING_VARS: sh: tasks/validate.sh template: desc: Fill in variables in *.template.* files deps: [validate] cmds: - | find services -name "*.template.*" | while read -r f do echo "templating $f" envsubst < $f > ${f/.template/} done sources: - services/**/*.template.* - .env