mirror of
https://codeberg.org/emersion/gamja
synced 2025-03-12 15:33:47 +01:00
28 lines
658 B
YAML
28 lines
658 B
YAML
image: alpine/latest
|
|
packages:
|
|
- npm
|
|
- rsync
|
|
sources:
|
|
- https://codeberg.org/emersion/gamja.git
|
|
secrets:
|
|
- 7a146c8e-aeb4-46e7-99bf-05af7486bbe9 # deploy SSH key
|
|
artifacts:
|
|
- gamja/gamja.tar.gz
|
|
tasks:
|
|
- setup: |
|
|
cd gamja
|
|
npm install --include=dev
|
|
- build: |
|
|
cd gamja
|
|
npm run build
|
|
tar -czf gamja.tar.gz -C dist .
|
|
- 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
|