2024-11-08 21:10:55 -05:00
|
|
|
# TODO switch back to alpine/latest once the "npm install" deadlock is fixed
|
|
|
|
image: alpine/edge
|
2021-11-17 04:20:49 -05:00
|
|
|
packages:
|
|
|
|
- npm
|
2021-11-17 04:31:09 -05:00
|
|
|
- rsync
|
2021-11-17 04:20:49 -05:00
|
|
|
sources:
|
2024-10-11 09:07:43 -04:00
|
|
|
- https://codeberg.org/emersion/gamja.git
|
2021-11-17 04:31:09 -05:00
|
|
|
secrets:
|
2024-10-10 18:25:02 -04:00
|
|
|
- 7a146c8e-aeb4-46e7-99bf-05af7486bbe9 # deploy SSH key
|
2021-11-17 04:20:49 -05:00
|
|
|
tasks:
|
|
|
|
- setup: |
|
|
|
|
cd gamja
|
|
|
|
npm install --include=dev
|
2024-09-28 15:45:45 -04:00
|
|
|
- build: |
|
|
|
|
cd gamja
|
2021-11-17 04:20:49 -05:00
|
|
|
npm run build
|
2024-09-28 15:45:45 -04:00
|
|
|
- lint: |
|
|
|
|
cd gamja
|
2024-09-29 05:45:56 -04:00
|
|
|
npm run -- lint --max-warnings 0
|
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 \
|
2024-10-10 18:25:02 -04:00
|
|
|
. deploy-gamja@sheeta.emersion.fr:/srv/http/gamja
|