2017-09-12 16:05:05 +02:00
|
|
|
image: archlinux
|
|
|
|
packages:
|
|
|
|
- nodejs
|
|
|
|
- npm
|
|
|
|
- rsync
|
|
|
|
sources:
|
2018-03-04 05:22:01 +01:00
|
|
|
- https://github.com/SirCmpwn/receptor
|
2017-09-12 16:05:05 +02:00
|
|
|
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/
|