Instantly share code, notes, and snippets.

Embed
What would you like to do?
Hugo with nanobox
run.config:
engine: static
cache_dirs:
- .bin
extra_path_dirs:
- /app/.bin
extra_steps:
# fetch hugo binary if it doesn't exist
- |
if [[ ! -f .bin/hugo ]]; then
cd /tmp
wget https://github.com/spf13/hugo/releases/download/v0.18/hugo_0.18_Linux-64bit.tar.gz
tar -xzf hugo_0.18_Linux-64bit.tar.gz
mv /tmp/hugo_0.18_linux_amd64/hugo_0.18_linux_amd64 /app/.bin/hugo
cd - >/dev/null
fi
deploy.config:
extra_steps:
# generate the site
- hugo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment