receptor/.build.yml

24 lines
566 B
YAML
Raw Normal View History

2017-09-12 16:05:05 +02:00
image: archlinux
packages:
- nodejs
- npm
- rsync
sources:
- https://git.sr.ht/~sircmpwn/receptor
environment:
deploy: synapse@synapse-bt.org
2017-09-17 23:59:47 +02:00
secrets:
- 7ebab768-e5e4-4c9d-ba57-ec41a72c5665
2017-09-12 16:05:05 +02:00
tasks:
- setup: |
cd receptor
npm install
- build: |
cd receptor
npm run build:production
- deploy: |
cd receptor
sshopts="-o StrictHostKeyChecking=no"
rsync --rsh="ssh $sshopts" -rP index.html ${deploy}:/var/html/web.synapse-bt.org/
rsync --rsh="ssh $sshopts" -rP dist ${deploy}:/var/html/web.synapse-bt.org/