Last active
February 11, 2021 15:13
-
-
Save Pamps/7d7e5b3d629496063d027e23f89ea5f0 to your computer and use it in GitHub Desktop.
My default GitLab CI FTP deploy for WordPress sites, works well on SiteGround, SpeedyDot and others
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
deploy: | |
script: | |
- apt-get update -qq && apt-get install -y -qq lftp | |
- lftp -c "set ftp:ssl-allow no; open -u $USERNAME,$PASSWORD $HOST; mirror -Rnv ./ public_html/ --ignore-time --parallel=10 --exclude-glob .git* --exclude .git/" | |
only: | |
- master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Use the --just-print parameter to simulate the changes. Useful for when testing an existing setup, and you don't want to hose the already uploaded files.
e.g. mirror -Rnv --just-print