Add Drone

This commit is contained in:
Jack Hadrill 2021-01-03 05:20:19 +00:00
parent 0bc1f571d9
commit 0645c43349
1 changed files with 24 additions and 0 deletions

24
.drone.yml Normal file
View File

@ -0,0 +1,24 @@
kind: pipeline
type: docker
name: deploy
steps:
- name: build
image: node:15
commands:
- npm install
- npm run build
- name: deploy
image: alpine
when:
branch:
- master
environment:
USERNAME:
from_secret: ftp_username
PASSWORD:
from_secret: ftp_password
commands:
- apk --no-cache add lftp
- lftp -e "mirror -R dist vcinemaapp" -u $USERNAME,$PASSWORD storage.bunnycdn.com