--- stages: - deploy Upload to webserver: stage deploy: only: - master script: - | lftp -c "set ftp:ssl-allow no; open -u $USERNAME,$PASSWORD $HOST; \ mirror -Rev ./ ./ --ignore-time --parallel=10 \ --exclude-glob .git* --exclude .git/"