From 459162cd12a9c4018da9c2cfb2d4a374334eab7e Mon Sep 17 00:00:00 2001 From: Gianmarco Pettinato Date: Thu, 16 Dec 2021 12:42:34 +0100 Subject: [PATCH] rollback to lftp --- .drone.yml | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/.drone.yml b/.drone.yml index e82bcf2..ae2541b 100644 --- a/.drone.yml +++ b/.drone.yml @@ -11,15 +11,14 @@ steps: - npm run build - name: deploy - image: cschlosser/drone-ftps + image: mwienk/docker-lftp environment: - FTP_USERNAME: + USERNAME: from_secret: username - FTP_PASSWORD: + PASSWORD: from_secret: password - PLUGIN_HOSTNAME: + HOST: from_secret: host - PLUGIN_DEST_DIR: /www - PLUGIN_SRC_DIR: /build - PLUGIN_EXCLUDE: (.htaccess)|(.git) - \ No newline at end of file + commands: + - "ls" + - lftp -c "open -u $USERNAME,$PASSWORD $HOST; mirror -Rnev ./build ./www --ignore-time --parallel=10 --exclude .htaccess --exclude-glob .git* --exclude .git/"