2021-11-17 04:20:49 -05:00
|
|
|
image: alpine/latest
|
|
|
|
packages:
|
|
|
|
- npm
|
2021-11-17 04:31:09 -05:00
|
|
|
- rsync
|
2021-11-17 04:20:49 -05:00
|
|
|
sources:
|
|
|
|
- https://git.sr.ht/~emersion/gamja
|
2021-11-17 04:31:09 -05:00
|
|
|
secrets:
|
|
|
|
- 5874ac5a-905e-4596-a117-fed1401c60ce # deploy SSH key
|
2021-11-17 04:20:49 -05:00
|
|
|
tasks:
|
|
|
|
- setup: |
|
|
|
|
cd gamja
|
|
|
|
npm install --include=dev
|
|
|
|
npm run build
|
2021-11-17 04:31:09 -05:00
|
|
|
- deploy: |
|
|
|
|
cd gamja/dist
|
2021-12-16 17:14:10 -05:00
|
|
|
[ "$(git rev-parse HEAD)" = "$(git rev-parse origin/master)" ] || complete-build
|
2021-11-17 04:31:09 -05:00
|
|
|
rsync --rsh="ssh -o StrictHostKeyChecking=no" -rP \
|
2021-11-17 04:45:18 -05:00
|
|
|
--delete --exclude=config.json \
|
|
|
|
. deploy@emersion.fr:/srv/http/gamja
|