add drone config?
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
d5f865c832
commit
a52b1278cb
|
@ -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"
|
||||
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
css/*
|
||||
images/*
|
||||
index.html
|
Loading…
Reference in New Issue