From 0645c43349f2ca66de757f40f1ddd31d8bfa7c7d Mon Sep 17 00:00:00 2001 From: Jack Hadrill Date: Sun, 3 Jan 2021 05:20:19 +0000 Subject: [PATCH] Add Drone --- .drone.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..a635aa4 --- /dev/null +++ b/.drone.yml @@ -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