Skip to content

Instantly share code, notes, and snippets.

@Pamps Pamps/.gitlab-ci.yml
Last active Dec 6, 2018

What would you like to do?
My default GitLab CI FTP deploy for WordPress sites, works well on SiteGround, SpeedyDot and others
- 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/"
- master

This comment has been minimized.

Copy link
Owner Author

Pamps commented Dec 6, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.