mirror of
https://codeberg.org/emersion/gamja.git
synced 2024-12-02 20:17:14 -05:00
24 lines
558 B
YAML
24 lines
558 B
YAML
image: alpine/latest
|
|
packages:
|
|
- npm
|
|
- rsync
|
|
sources:
|
|
- https://git.sr.ht/~emersion/gamja
|
|
secrets:
|
|
- 77c7956b-003e-44f7-bb5c-2944b2047654 # deploy SSH key
|
|
tasks:
|
|
- setup: |
|
|
cd gamja
|
|
npm install --include=dev
|
|
- build: |
|
|
cd gamja
|
|
npm run build
|
|
- lint: |
|
|
cd gamja
|
|
npm run lint
|
|
- 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@sheeta.emersion.fr:/srv/http/gamja
|