--- kind: pipeline type: docker name: deploy steps: - name: build-site image: node:latest commands: - npm install - npm run build - name: deploy image: mwienk/docker-lftp environment: $USERNAME: from_secret: username $PASSWORD: from_secret: password $HOST: from_secret: host commands: - echo $USERNAME - echo $PASSWORD - echo $HOST - lftp -c "open -u $USERNAME,$PASSWORD $HOST; mirror -Rnev ./build ./www --ignore-time --parallel=10 --exclude .htaccess --exclude-glob .git* --exclude .git/"