core/.drone.yml
Artem Anufrij f2238c5ac7
All checks were successful
continuous-integration/drone/push Build is passing
add drone support fix #2
2019-09-03 23:14:39 +02:00

29 lines
503 B
YAML

kind: pipeline
name: default
steps:
- name: build
image: node:latest
commands:
- npm install
- npm run build
- name: deploy
image: appleboy/drone-scp
when:
branch: master
event: push
settings:
host:
from_secret: drone_server_host
username:
from_secret: drone_server_user
password:
from_secret: drone_server_pass
port:
from_secret: drone_server_port
command_timeout: 2m
rm: false
target: /var/www/drone/
source:
- dist/*