From 79f4b56febde80e7ac05d02167a2fd402ead39df Mon Sep 17 00:00:00 2001 From: Jack Hadrill Date: Sun, 3 Jan 2021 05:33:35 +0000 Subject: [PATCH] Fix removal of old files upon deploy --- .drone.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index 441bf45..54d3a1b 100644 --- a/.drone.yml +++ b/.drone.yml @@ -20,6 +20,7 @@ steps: PASSWORD: from_secret: ftp_password commands: - - apk --no-cache add lftp + - apk --no-cache add lftp curl - cd dist - - lftp -e "mirror --delete-first -P 10 -R" -u $USERNAME,$PASSWORD storage.bunnycdn.com + - curl -X DELETE -H "AccessKey: $PASSWORD" https://storage.bunnycdn.com/vcinemaapp/ + - lftp -e "mirror -P 10 -R" -u $USERNAME,$PASSWORD storage.bunnycdn.com