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/"