mondart.com/scripts/build.sh
2024-07-13 11:25:02 +01:00

8 lines
341 B
Bash
Executable File

#!/usr/bin/env bash
# vim: ft=bash:
#
file_date="$(date "+%y%m%d%H%M")"
docker run --rm -v "${PWD}/mondarth-com:/src" -v "${HOME}/hugo_cache:/tmp/hugo_cache" hugomods/hugo:exts hugo --theme mondarth --minify
tar czvf "mondarth${file_date}.tar.gz" -C mondarth-com/public .
scp "mondarth${file_date}.tar.gz" mbools@192.168.1.251:/home/mbools