gamja-old/.build.yml
Simon Ser 460af509e9 ci: temporarily switch to alpine/edge
It has a more up-to-date nodejs version which doesn't deadlock in
"npm install".
2024-11-09 03:10:55 +01:00

25 lines
659 B
YAML

# TODO switch back to alpine/latest once the "npm install" deadlock is fixed
image: alpine/edge
packages:
- npm
- rsync
sources:
- https://git.sr.ht/~emersion/gamja
secrets:
- 7a146c8e-aeb4-46e7-99bf-05af7486bbe9 # deploy SSH key
tasks:
- setup: |
cd gamja
npm install --include=dev
- build: |
cd gamja
npm run build
- lint: |
cd gamja
npm run -- lint --max-warnings 0
- deploy: |
cd gamja/dist
[ "$(git rev-parse HEAD)" = "$(git rev-parse origin/master)" ] || complete-build
rsync --rsh="ssh -o StrictHostKeyChecking=no" -rP \
--delete --exclude=config.json \
. deploy-gamja@sheeta.emersion.fr:/srv/http/gamja