moineau/.drone.yml
Kazhnuz 222dbd6da1
All checks were successful
continuous-integration/drone Build is passing
feat: add drone config
2024-10-12 21:54:45 +02:00

32 lines
542 B
YAML

kind: pipeline
name: production
when:
event: [ push ]
branch: [ master ]
clone:
git:
image: plugins/git
pull: true
steps:
- name: build
image: node:latest
commands:
- npm i
- npm run compile
- name: deploy
image: drillster/drone-rsync
settings:
hosts:
from_secret: deploy_host
target: /var/www/moineau.kazhnuz.space
source: dist/*
user:
from_secret: deploy_user
key:
from_secret: deploy_key
when:
branch: master
delete: true