33 lines
562 B
YAML
33 lines
562 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 install -g gulp
|
|
- npm i
|
|
- npm build
|
|
|
|
- name: deploy
|
|
image: drillster/drone-rsync
|
|
settings:
|
|
hosts:
|
|
from_secret: deploy_host
|
|
target: /var/www/univers.kobold.city
|
|
source: dist/*
|
|
user:
|
|
from_secret: deploy_user
|
|
key:
|
|
from_secret: deploy_key
|
|
when:
|
|
branch: master
|
|
delete: true
|