Skip to content

home-assistant/tempio

tempio

A template helper for docker images which using text/template golang engine with sprig functions.

Support conf format:

  • json

Basic Example

tempio \
    -conf /config/coredns.json \
    -template /usr/share/tempio/corefile \
    -out /etc/corefile

Pipe Example

echo '{"some": "value"}' | tempio \
    -template /usr/share/tempio/corefile \
    -out /etc/corefile

No Outfile Example

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"}

Add tempio to your GitHub actions

- name: Setup tempio
  uses: home-assistant/tempio@main
- name: Run tempio
  run: tempio -help