2021-11-17 10:20:49 +01:00
|
|
|
image: alpine/latest
|
|
|
|
packages:
|
|
|
|
- npm
|
2021-11-17 10:31:09 +01:00
|
|
|
- rsync
|
2021-11-17 10:20:49 +01:00
|
|
|
sources:
|
|
|
|
- https://git.sr.ht/~emersion/gamja
|
2021-11-17 10:31:09 +01:00
|
|
|
secrets:
|
2022-07-09 12:26:39 +02:00
|
|
|
- 77c7956b-003e-44f7-bb5c-2944b2047654 # deploy SSH key
|
2021-11-17 10:20:49 +01:00
|
|
|
tasks:
|
|
|
|
- setup: |
|
|
|
|
cd gamja
|
|
|
|
npm install --include=dev
|
2024-09-28 21:45:45 +02:00
|
|
|
- build: |
|
|
|
|
cd gamja
|
2021-11-17 10:20:49 +01:00
|
|
|
npm run build
|
2024-09-28 21:45:45 +02:00
|
|
|
- lint: |
|
|
|
|
cd gamja
|
|
|
|
npm run lint
|
2021-11-17 10:31:09 +01:00
|
|
|
- deploy: |
|
|
|
|
cd gamja/dist
|
2021-12-16 23:14:10 +01:00
|
|
|
[ "$(git rev-parse HEAD)" = "$(git rev-parse origin/master)" ] || complete-build
|
2021-11-17 10:31:09 +01:00
|
|
|
rsync --rsh="ssh -o StrictHostKeyChecking=no" -rP \
|
2021-11-17 10:45:18 +01:00
|
|
|
--delete --exclude=config.json \
|
2022-07-09 12:26:39 +02:00
|
|
|
. deploy@sheeta.emersion.fr:/srv/http/gamja
|