~ols/ols.wtf

ref: 3796d012023effa7a0bf8860ae67e2ce93d98358 ols.wtf/.build.yml -rw-r--r-- 649 bytes View raw
3796d012Oliver Leaver-Smith Use openbsd for build 6 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
image: openbsd/latest
sources:
  - https://git.sr.ht/~ols/ols.wtf
environment:
  deploy: deploy@beast.ols.wtf
  dir: /home/deploy/ols.wtf
secrets:
  -  ce249f9a-ef77-48d5-9f3b-3005bf9b8db9
tasks:
  - build: |
      cd ols.wtf
      export PATH="$PWD/bin:$PATH"
      mkdir dst
      ssg5 src dst 'Oliver Leaver-Smith' 'https://ols.wtf'
      twitter
  - deploy: |
      cd 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 ols.wtf
      rm -rf dst