Add Drone
This commit is contained in:
parent
0bc1f571d9
commit
0645c43349
|
@ -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
|
Loading…
Reference in New Issue