openpunk-ansible/roles/blog/templates/updateBlog

9 lines
268 B
Plaintext
Raw Normal View History

#!/bin/bash
cd /var/www/{{ domain }}
/usr/bin/git fetch origin
/usr/bin/git reset --hard origin/main
# build sites
/usr/bin/hugo --cleanDestinationDir --minify -d public -b https://{{ domain }}
/usr/bin/hugo --cleanDestinationDir --minify -d tor -b {{ onionDomain }}