~pvsr/weather

weather/.build.yml -rw-r--r-- 679 bytes View raw
db8a58a0Peter Rice Reduce temperature graph from 48 to 36 hours 8 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
image: alpine/latest
packages:
  - rsync
environment:
  deploy: deploy@peterrice.xyz
  port: 20021
sources:
  - https://git.sr.ht/~pvsr/weather
secrets:
  - fd8c73fd-672b-4ab0-99b2-56cfd92e73cd
tasks:
  - deploy: |
      cd weather
      sshopts="ssh -p $port -o StrictHostKeyChecking=no"
      rsync --rsh="$sshopts" -rP static $deploy:/var/www/weather.peterrice.xyz/
      rsync --rsh="$sshopts" -rP templates $deploy:/var/www/weather.peterrice.xyz/
      rsync --rsh="$sshopts" -rP *.py $deploy:/var/www/weather.peterrice.xyz/
      rsync --rsh="$sshopts" -rP locations.ini $deploy:/var/www/weather.peterrice.xyz/
      $sshopts $deploy 'touch /etc/uwsgi/vassals/weather.ini'