Add cacheDir option

This enables setting a custom cache directory for Hugo. Some caching
plugins (e.g. http://plugins.drone.io/drillster/drone-volume-cache/)
require the directories to be cached to be located inside the workspace.
This commit is contained in:
Valentin Brandl 2018-07-20 18:35:16 +02:00
commit 894c1270cb
No known key found for this signature in database
GPG key ID: CAD4DA1A789125F9
3 changed files with 6 additions and 0 deletions

View file

@ -133,6 +133,7 @@ docker run --rm \
-e PLUGIN_BUILDDRAFTS=false \
-e PLUGIN_BUILDEXPIRED=false \
-e PLUGIN_BUILDFUTURE=false \
-e PLUGIN_CACHEDIR=false \
-e PLUGIN_CONFIG=false \
-e PLUGIN_CONTENT=false \
-e PLUGIN_LAYOUT=false \
@ -152,6 +153,7 @@ docker run --rm \
`buildDrafts` - include content marked as draft<br>
`buildExpired` - include expired content<br>
`buildFuture` - include content with publishdate in the future<br>
`cacheDir` - change cache directory (useful when using caching plugins)
`config` - config file (default is path/config.yaml|json|toml)<br>
`content` - filesystem path to content directory<br>
`layout` - filesystem path to layout directory<br>