aboutsummaryrefslogtreecommitdiff
path: root/.build.yml
blob: 83316ebe7e30b4c4bef1fb9fc4f09f7f03f6f91e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
image: alpine/latest
packages:
    - rsync
sources:
    - https://git.sr.ht/~boringcactus/pig.observer
secrets:
    - b5cb9b2b-1461-4486-95e1-886451674a89
tasks:
    - upload: |
        upload-to() {
            dest=$1
            shift
            rsync --rsh="ssh -o StrictHostKeyChecking=no" -rlt8hP --del $@ services@boringcactus.com:$dest
        }
        cd pig.observer
        upload-to /var/www/html/pig.observer/ dist/*