~ols/blog.ols.wtf

blog.ols.wtf/.build.yml -rw-r--r-- 732 bytes
fa879a95Oliver Leaver-Smith add whois-api blog to index 2 years ago
                                                                                
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
26
27
image: openbsd/latest
sources:
  - https://git.sr.ht/~ols/blog.ols.wtf
packages:
  - rsync-3.1.3p0
  - lowdown
environment:
  deploy: deploy@beast.ols.wtf
  dir: /home/deploy/blog.ols.wtf
secrets:
  -  ce249f9a-ef77-48d5-9f3b-3005bf9b8db9
tasks:
  - build: |
      cd blog.ols.wtf
      export PATH="$PWD/bin:$PATH"
      tag.sh
      mkdir dst
      ssg5 src dst 'Oliver Leaver-Smith' 'https://blog.ols.wtf'
      twitter
  - deploy: |
      cd blog.ols.wtf
      sshopts="ssh -o StrictHostKeyChecking=no"
      $sshopts $deploy "rm -rf $dir/previous/* && cp -R $dir/current/* $dir/previous/ && rm -rf $dir/current/*"
      rsync --rsh="$sshopts" -rP dst/* $deploy:$dir/current/
  - clean: |
      cd blog.ols.wtf
      rm -rf dst