aboutsummaryrefslogtreecommitdiff
path: root/.build.yml
blob: caba07692b900465750e8d1e6054977cd4845af0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
image: alpine/edge
oauth: pages.sr.ht/PAGES:RW
packages:
  - hut
  - rsync
secrets:
  - 4c5cebdb-c744-4dfb-a69a-30b9bdfe048c
sources:
  - https://git.sr.ht/~adamski/adast.dk
  - https://git.sr.ht/~bt/smu
environment:
  deploy: srht@adast.dk
  mirror: mirror.adast.dk
tasks:
- smu: |
    cd smu
    sudo make install
- package: |
    cd adast.dk
    make build
    tar -C build -cvz . > ../site.tar.gz
- upload: |
    sshopts="ssh -o StrictHostKeyChecking=no"
    rsync --rsh="$sshopts" -ruz adast.dk/build/ $deploy:/var/www/adast.dk
    hut pages publish -d $mirror site.tar.gz