add drone config?
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
John Shaver 2021-06-16 23:15:45 -07:00
parent d5f865c832
commit a52b1278cb
2 changed files with 52 additions and 0 deletions

49
.drone.yml Normal file
View file

@ -0,0 +1,49 @@
kind: pipeline
type: docker
name: test
trigger:
branches:
exclude:
- master
event:
- push
steps:
- name: test
image: node:lts-alpine
commands:
- npm ci
- npm test
---
kind: pipeline
type: docker
name: deploy-staging
trigger:
branches:
- stage
event:
- push
steps:
- name: test
image: node:lts-alpine
commands:
- npm ci
- npm test
- name: deploy
image: drillster/drone-rsync
hosts: [jshaver.net]
user: deploy
key:
from_secret: deploy-key
source: ./
target: /var/www/jshaver_net/stage
args:
- "--files-from=./deploy-list.txt"

3
deploy-list.txt Normal file
View file

@ -0,0 +1,3 @@
css/*
images/*
index.html