John Shaver
cce0e0d08b
All checks were successful
continuous-integration/drone/push Build is passing
69 lines
1,013 B
YAML
69 lines
1,013 B
YAML
kind: pipeline
|
|
type: docker
|
|
name: test
|
|
|
|
trigger:
|
|
event:
|
|
- push
|
|
|
|
steps:
|
|
- name: test
|
|
image: node:lts-alpine
|
|
commands:
|
|
- npm ci
|
|
- npm test
|
|
|
|
---
|
|
|
|
kind: pipeline
|
|
type: docker
|
|
name: deploy-staging
|
|
|
|
trigger:
|
|
event:
|
|
- push
|
|
branch:
|
|
exclude:
|
|
- master
|
|
|
|
steps:
|
|
- name: deploy
|
|
image: drillster/drone-rsync
|
|
settings:
|
|
hosts:
|
|
- jshaver.net
|
|
user: deploy
|
|
key:
|
|
from_secret: deploy-key
|
|
source: ./
|
|
target: /var/www/jshaver_net/stage/${DRONE_BRANCH}/
|
|
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"
|