2021-06-17 06:15:45 +00:00
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: test
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
event:
|
|
|
|
- push
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: test
|
2021-06-17 06:37:26 +00:00
|
|
|
image: node:lts-alpine
|
|
|
|
commands:
|
|
|
|
- npm ci
|
|
|
|
- npm test
|
2021-06-17 06:15:45 +00:00
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: deploy-staging
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
event:
|
|
|
|
- push
|
2021-06-21 04:17:14 +00:00
|
|
|
branch:
|
|
|
|
exclude:
|
|
|
|
- master
|
2021-06-17 06:15:45 +00:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: deploy
|
|
|
|
image: drillster/drone-rsync
|
2021-06-17 06:53:07 +00:00
|
|
|
settings:
|
|
|
|
hosts:
|
|
|
|
- jshaver.net
|
|
|
|
user: deploy
|
|
|
|
key:
|
|
|
|
from_secret: deploy-key
|
|
|
|
source: ./
|
2021-06-21 04:17:14 +00:00
|
|
|
target: /var/www/jshaver_net/stage/${DRONE_BRANCH}/
|
2021-06-17 07:05:29 +00:00
|
|
|
recursive: true
|
2021-06-17 06:53:07 +00:00
|
|
|
args:
|
|
|
|
- "--files-from=deploy-list.txt"
|
2021-06-17 07:20:34 +00:00
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
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"
|