mirror of
https://github.com/CPunch/openpunk-ansible.git
synced 2026-02-08 02:40:04 +00:00
blog: maintain two separate builds of the site; one for tor, one for https
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
repo: "https://github.com/CPunch/openpunk.git"
|
||||
dest: "/var/www/{{ domain }}"
|
||||
|
||||
# TODO: make idempotent
|
||||
# TODO: make idempotent (call the updateBlog script !!)
|
||||
- name: Build blog
|
||||
command:
|
||||
cmd: hugo
|
||||
|
||||
@@ -2,4 +2,7 @@
|
||||
cd /var/www/{{ domain }}
|
||||
/usr/bin/git fetch origin
|
||||
/usr/bin/git reset --hard origin/main
|
||||
/usr/bin/hugo
|
||||
|
||||
# build sites
|
||||
/usr/bin/hugo --cleanDestinationDir --minify -d public -b https://{{ domain }}
|
||||
/usr/bin/hugo --cleanDestinationDir --minify -d tor -b {{ onionDomain }}
|
||||
|
||||
Reference in New Issue
Block a user