This commit is contained in:
parent
d5f865c832
commit
a52b1278cb
2 changed files with 52 additions and 0 deletions
49
.drone.yml
Normal file
49
.drone.yml
Normal 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
3
deploy-list.txt
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
css/*
|
||||||
|
images/*
|
||||||
|
index.html
|
Loading…
Reference in a new issue