@@ 4,16 4,13 @@ sources:
- https://git.hut.ccw.icu/~comcloudway/pages
packages:
# build dependencies
- - bash
- - sed
- - pandoc
+ - hugo
# deploy dependencies
- s3fs-fuse
secrets:
# s3fs passwd file
- 52590bef-f27a-4b05-8262-4d14e68486e9
environment:
- domain: "https://ccw.icu"
builddir: "pages/build"
s3_url: "https://s3.ccw.icu"
s3_bucket: "website"
@@ 26,6 23,6 @@ tasks:
sudo s3fs $s3_bucket ~/$builddir -o url=$s3_url -o use_path_request_style -o umask=0007,uid=$(id -u) -o allow_other
- builds: |
cd pages
- bash ./build.sh $domain
+ hugo -d ~/$builddir
- cleanup: |
sudo umount ~/$builddir