This commit is contained in:
parent
6486d144ab
commit
425c7f6ff2
1 changed files with 35 additions and 0 deletions
35
.drone.yml
Normal file
35
.drone.yml
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
kind: pipeline
|
||||||
|
name: production
|
||||||
|
when:
|
||||||
|
event: [ push ]
|
||||||
|
branch: [ master ]
|
||||||
|
|
||||||
|
clone:
|
||||||
|
git:
|
||||||
|
image: plugins/git
|
||||||
|
pull: true
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: build
|
||||||
|
image: node:latest
|
||||||
|
commands:
|
||||||
|
- npm install -g gulp
|
||||||
|
- npm i
|
||||||
|
- gulp
|
||||||
|
|
||||||
|
- name: deploy
|
||||||
|
image: drillster/drone-rsync
|
||||||
|
settings:
|
||||||
|
hosts:
|
||||||
|
from_secret: deploy_host
|
||||||
|
port:
|
||||||
|
from_secret: deploy_port
|
||||||
|
user:
|
||||||
|
from_secret: deploy_user
|
||||||
|
key:
|
||||||
|
from_secret: deploy_key
|
||||||
|
target:
|
||||||
|
from_secret: deploy_target
|
||||||
|
source: ./dist
|
||||||
|
recursive: true
|
||||||
|
delete: true
|
Loading…
Reference in a new issue