Skip to content

Instantly share code, notes, and snippets.

@ju5t
Created June 7, 2018 11:17
Show Gist options
  • Save ju5t/c2108770e896bbf939116b349b9360a3 to your computer and use it in GitHub Desktop.
Save ju5t/c2108770e896bbf939116b349b9360a3 to your computer and use it in GitHub Desktop.
before_script:
- apt-get update -qq && apt-get install git zip unzip lftp -y
stages:
- deploy
deploy:
image: php:7.1
stage: deploy
environment:
name: production
script:
- lftp -c "set ftp:ssl-allow no; open -u $FTP_USERNAME,$FTP_PASSWORD $FTP_HOSTNAME; mirror -Rnev --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