add master deploy
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
John Shaver 2021-06-17 00:20:34 -07:00
parent 7a5684daee
commit 400bb3eab5

View file

@ -3,9 +3,6 @@ type: docker
name: test
trigger:
branches:
exclude:
- master
event:
- push
@ -24,18 +21,12 @@ type: docker
name: deploy-staging
trigger:
branches:
include:
branch:
- stage
event:
- push
steps:
- name: test
image: node:lts-alpine
commands:
- npm ci
- npm test
- name: deploy
image: drillster/drone-rsync
settings:
@ -49,3 +40,30 @@ steps:
recursive: true
args:
- "--files-from=deploy-list.txt"
---
kind: pipeline
type: docker
name: deploy-master
trigger:
branch:
- master
event:
- push
steps:
- name: deploy
image: drillster/drone-rsync
settings:
hosts:
- jshaver.net
user: deploy
key:
from_secret: deploy-key
source: ./
target: /var/www/jshaver_net/
recursive: true
args:
- "--files-from=deploy-list.txt"