Skip to content

Instantly share code, notes, and snippets.

@steveosoule
Last active March 15, 2019 17:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save steveosoule/32713dbce6c374e6abbec2ffd0b463d1 to your computer and use it in GitHub Desktop.
Save steveosoule/32713dbce6c374e6abbec2ffd0b463d1 to your computer and use it in GitHub Desktop.
GitLab CI to FTP deploy
# 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