mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-23 21:02:09 +00:00
CI: deploy onion site
This commit is contained in:
parent
99e402f133
commit
f4a07c96a8
2 changed files with 3 additions and 2 deletions
|
@ -25,5 +25,6 @@ tasks:
|
||||||
export PATH=~/bin:$PATH
|
export PATH=~/bin:$PATH
|
||||||
make clean deploy
|
make clean deploy
|
||||||
cp mentions.json ~/mentions.json
|
cp mentions.json ~/mentions.json
|
||||||
|
make WWW_ROOT=/var/www/seirdy.onion HUGO_BASEURL='http://wgq3bd2kqoybhstp77i3wrzbfnsyd27wt34psaja4grqiezqircorkyd.onion/' clean deploy-html
|
||||||
artifacts:
|
artifacts:
|
||||||
- mentions.json
|
- mentions.json
|
||||||
|
|
4
Makefile
4
Makefile
|
@ -84,7 +84,7 @@ mentions.json: hugo
|
||||||
rm mentions.json.unfiltered
|
rm mentions.json.unfiltered
|
||||||
|
|
||||||
.PHONY: deploy-html
|
.PHONY: deploy-html
|
||||||
deploy-html: build mentions.json
|
deploy-html: build
|
||||||
rsync $(RSYNCFLAGS) --exclude 'gemini' --exclude '*.gmi' --exclude-from .rsyncignore $(OUTPUT_DIR)/ $(WWW_RSYNC_DEST) --delete
|
rsync $(RSYNCFLAGS) --exclude 'gemini' --exclude '*.gmi' --exclude-from .rsyncignore $(OUTPUT_DIR)/ $(WWW_RSYNC_DEST) --delete
|
||||||
|
|
||||||
.PHONY: deploy-gemini
|
.PHONY: deploy-gemini
|
||||||
|
@ -93,7 +93,7 @@ deploy-gemini: hugo
|
||||||
rsync $(RSYNCFLAGS) $(OUTPUT_DIR)/posts/gemini.xml $(GEMINI_RSYNC_DEST)/feed.xml
|
rsync $(RSYNCFLAGS) $(OUTPUT_DIR)/posts/gemini.xml $(GEMINI_RSYNC_DEST)/feed.xml
|
||||||
|
|
||||||
.PHONY: deploy
|
.PHONY: deploy
|
||||||
deploy: deploy-html deploy-gemini
|
deploy: deploy-html mentions.json deploy-gemini
|
||||||
|
|
||||||
## stuff for the staging server
|
## stuff for the staging server
|
||||||
.PHONY: test-staging
|
.PHONY: test-staging
|
||||||
|
|
Loading…
Reference in a new issue