VCinema/.drone.yml

25 lines
466 B
YAML

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