add drone config?
continuous-integration/drone/push Build is failing Details

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