VCinema/.drone.yml

27 lines
544 B
YAML

kind: pipeline
type: docker
name: deploy
steps:
- name: build
image: node:lts
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
- cd dist
- lftp -e "rm -rf /" -u $USERNAME,$PASSWORD storage.bunnycdn.com
- lftp -e "mirror -P 10 -R" -u $USERNAME,$PASSWORD storage.bunnycdn.com