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"
|
2017-11-26 16:43:52 +01:00
|
|
|
rsync --rsh="ssh $sshopts" -rP index.html ${deploy}:/var/www/web.synapse-bt.org/
|
|
|
|
rsync --rsh="ssh $sshopts" -rP dist ${deploy}:/var/www/web.synapse-bt.org/
|