This commit is contained in:
parent
7a5684daee
commit
400bb3eab5
1 changed files with 28 additions and 10 deletions
38
.drone.yml
38
.drone.yml
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue