I has been reainding some question and articles before make this question:
- gitlab ci pipeline failed deploy ftp
- Use GitLab CI to deploy app with ftp
- LFTP in gitlab CI: files are not updated on FTP server even if they are changed in the last commit
- Use Gitlab Pipeline to push data to ftpserver
- https://savjee.be/2019/04/gitlab-ci-deploy-to-ftp-with-lftp/
My problem is that I use the pipeline variables I can not login.
$ lftp -e "set ssl:verify-certificate false; mirror --reverse --verbose=3 --delete ./ ./ --ignore-time --parallel=10 --exclude-glob .git* --exclude .git/; quit" -u $FTP_USER,$FTP_PASS $FTP_HOST
mirror: Login failed: 530 Login authentication failed
Cleaning up project directory and file based variables
But if I add the varaible value in the yml it works. Cpanels fpt user is build in this way: user@domian
I don't know if this can be the problem when it's in a variable.
$ lftp -e "set ssl:verify-certificate false; mirror --reverse --verbose=3 --delete ./ ./ --ignore-time --parallel=10 --exclude-glob .git* --exclude .git/; quit" -u user@domian,password domain