aboutsummaryrefslogtreecommitdiff
path: root/.build.yml
blob: 6713577466078822eb2c9d29b8ac8c61d6183101 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
image: alpine/edge
oauth: pages.sr.ht/PAGES:RW
packages:
- hut
- hugo
- rsync
secrets:
  - 4c5cebdb-c744-4dfb-a69a-30b9bdfe048c
environment:
  site: status.adast.dk
  mirror: srht@adast.dk
tasks:
- package: |
    cd $site
    hugo
    tar -C public -cvz . > ../site.tar.gz
- upload: |
    hut pages publish site.tar.gz -d $site --site-config $site/.siteconfig.json
    sshopts="ssh -o StrictHostKeyChecking=no"
    rsync --rsh="$sshopts" -ruz $site/public/ $mirror:/var/www/$site