Last active
March 15, 2019 17:29
-
-
Save steveosoule/32713dbce6c374e6abbec2ffd0b463d1 to your computer and use it in GitHub Desktop.
GitLab CI to FTP deploy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://mrkaluzny.com/how-to-deploy-any-project-using-ftp-with-gitlab-continous-integration-ci/ | |
deploy: | |
stage: deploy | |
only: | |
- master | |
script: | |
- apt-get update -qq && apt-get install -y -qq lftp | |
- lftp -c "set ftp:ssl-allow no; open -u $USERNAME,$PASSWORD $HOST; mirror -Rev dist/ ./ --ignore-time --parallel=10 --exclude-glob .git* --exclude .git/" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment