A template helper for docker images which using text/template golang engine with sprig functions.
Support conf format:
- json
tempio \
-conf /config/coredns.json \
-template /usr/share/tempio/corefile \
-out /etc/corefile
echo '{"some": "value"}' | tempio \
-template /usr/share/tempio/corefile \
-out /etc/corefile
When -out
is not supplied, the result is printed to the console.
$ echo '{"some": "value"}' | tempio \
-template /usr/share/tempio/corefile
> {"some": "value", "other": "value"}
- name: Setup tempio
uses: home-assistant/tempio@main
- name: Run tempio
run: tempio -help