39 lines
1.3 KiB
YAML
39 lines
1.3 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
|
|
- libhighlight-perl
|
|
- rclone
|
|
environment:
|
|
site: hackade.org
|
|
secrets:
|
|
- 4a1e84d3-5834-4499-b2b8-e18a1865410e
|
|
- 47bf754f-023f-4e42-b7fb-f12c02528784
|
|
sources:
|
|
- git@git.sr.ht:~hackade/wiki
|
|
- git@git.sr.ht:~hackade/ikiwiki-setup
|
|
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
|
|
- upload: |
|
|
cd html
|
|
rclone --sftp-user $site --sftp-key-file ~/.ssh/47bf754f-023f-4e42-b7fb-f12c02528784 --sftp-port 2222 --sftp-host iceberg.hackade.org --sftp-disable-hashcheck --sftp-shell-type unix --config /dev/null --timeout=10s --contimeout=10s sync ./ ":sftp:root/"
|