42 lines
1.1 KiB
YAML
42 lines
1.1 KiB
YAML
image: debian/unstable
|
|
oauth: pages.sr.ht/PAGES:RW
|
|
packages:
|
|
- ikiwiki
|
|
- git
|
|
- libtimedate-perl
|
|
- libauthen-passphrase-perl
|
|
- libgravatar-url-perl
|
|
- libxml-simple-perl
|
|
- libhighlight-perl
|
|
- libhtml-tree-perl
|
|
- libtext-multimarkdown-perl
|
|
- libtext-textile-perl
|
|
- libtext-typography-perl
|
|
- locales-all
|
|
- perlmagick
|
|
- rsync
|
|
- hut
|
|
environment:
|
|
site: hackade.org
|
|
secrets:
|
|
- 1fcf62a0-7681-4125-908f-0363368b0609
|
|
sources:
|
|
- git@git.sr.ht:~hackade/wiki
|
|
- git@git.sr.ht:~hackade/ikiwiki-setup
|
|
- git@git.sr.ht:~hackade/wiki-html-overlay
|
|
tasks:
|
|
- build: |
|
|
ssh-keyscan git.sr.ht >> ~/.ssh/known_hosts
|
|
git -C wiki checkout -
|
|
sed -e '/cgiurl/ s/^#*/#/' -i ikiwiki-setup/ikiwiki.setup
|
|
sed -e '/cgi_wrapper/ s/^#*/#/' -i ikiwiki-setup/ikiwiki.setup
|
|
sed 's/\/root/\/home\/build/g' -i ikiwiki-setup/ikiwiki.setup
|
|
sed 's/\/var\/www/\/home\/build/g' -i ikiwiki-setup/ikiwiki.setup
|
|
ikiwiki --verbose --setup ikiwiki-setup/ikiwiki.setup --url https://$site
|
|
- package: |
|
|
rsync -a wiki-html-overlay/ html/
|
|
cd html
|
|
tar -cvz . > ../site.tar.gz
|
|
- upload: |
|
|
hut pages publish -d $site site.tar.gz
|