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
|
name: test
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
branches:
|
|
||||||
exclude:
|
|
||||||
- master
|
|
||||||
event:
|
event:
|
||||||
- push
|
- push
|
||||||
|
|
||||||
|
@ -24,18 +21,12 @@ type: docker
|
||||||
name: deploy-staging
|
name: deploy-staging
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
branches:
|
branch:
|
||||||
include:
|
|
||||||
- stage
|
- stage
|
||||||
event:
|
event:
|
||||||
- push
|
- push
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: test
|
|
||||||
image: node:lts-alpine
|
|
||||||
commands:
|
|
||||||
- npm ci
|
|
||||||
- npm test
|
|
||||||
- name: deploy
|
- name: deploy
|
||||||
image: drillster/drone-rsync
|
image: drillster/drone-rsync
|
||||||
settings:
|
settings:
|
||||||
|
@ -49,3 +40,30 @@ steps:
|
||||||
recursive: true
|
recursive: true
|
||||||
args:
|
args:
|
||||||
- "--files-from=deploy-list.txt"
|
- "--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