pelican-jdr/.drone.yml

34 lines
567 B
YAML
Raw Normal View History

2022-03-26 13:50:04 +01:00
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
2022-03-26 17:27:21 +01:00
- npm run build
2022-03-26 13:50:04 +01:00
- name: deploy
2022-03-26 16:21:00 +01:00
image: drillster/drone-rsync
2022-03-26 13:50:04 +01:00
settings:
2022-03-26 16:21:00 +01:00
hosts:
from_secret: deploy_host
2022-03-26 14:34:21 +01:00
target: /var/www/rulebook.kobold.city
source: dist/*
2022-03-26 13:50:04 +01:00
user:
2022-03-26 17:27:21 +01:00
from_secret: deploy_user
2022-03-26 13:50:04 +01:00
key:
2022-03-26 16:21:00 +01:00
from_secret: deploy_key
2022-03-26 14:34:21 +01:00
when:
2022-03-26 16:21:00 +01:00
branch: master
2022-03-26 14:34:21 +01:00
delete: true