Created
November 28, 2018 11:32
-
-
Save adeonir/abb8654757873711667cf2872da58e27 to your computer and use it in GitHub Desktop.
Deploy to FTP using GitLab CI
This file contains hidden or 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: | |
stage: deploy | |
only: | |
- master | |
script: | |
- apt-get update -qq && apt-get install -qq lftp -y | |
- lftp -c "set ftp:ssl-allow false; open -u $USERNAME,$PASSWORD $HOST; mirror -Rv dist/ ./public_html --ignore-time -p" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment