Skip to content

Commit be3c73b

Browse files
author
Max Dymond
committed
Add docs
Signed-off-by: Max Dymond <max.dymond@microsoft.com>
1 parent 942f470 commit be3c73b

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

docs/content/intro/feature-overview.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,3 +222,14 @@ Note that use of `docker_switches` may reduce the reproducibility and shareabili
222222

223223
Nonetheless, it is useful to be able to add arbitrary switches in a pinch, just to be able to get something working.
224224
If there are things you can add with `docker_switches` which are reproducible and shareable, please raise a feature request, or go ahead and implement it yourself!
225+
226+
# Templating
227+
228+
`floki` supports templating using the [Tera engine](https://tera.netlify.app/). Your `floki.yaml` file is parsed once as a template. The `env` var is exposed to the template, which contains all environment variables.
229+
230+
Example uses include referencing environmental variables in the `floki` config, e.g. to mount a subdirectory of the user's home directory:
231+
```yaml
232+
docker_switches:
233+
- -v {{ env.HOME }}/.vim:/home/build/.vim
234+
```
235+
Note that extensive use may reduce the reproducibility and shareability of your `floki.yaml`.

0 commit comments

Comments
 (0)