Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- stages:
- - project_dev
- - project_prod
- develop:
- stage: project_dev
- script:
- - apt-get update
- - apt-get install lftp
- - lftp -c "set ftp:ssl-allow no; open -u $USERNAME,$PASSWORD $HOST; mirror -Rev ./ $URL --ignore-time --parallel=10 --exclude-glob .git* --exclude .git/ --exclude .env --exclude vendor/ --exclude config/ --exclude storage/ --exclude public/storage/ --exclude public/.htaccess --exclude public/robots.txt --exclude nbproject/"
- - echo "done!"
- only:
- - dev
- production:
- stage: project_prod
- script:
- - apt-get update
- - apt-get install lftp
- - lftp -c "set ftp:ssl-allow no; open -u $USERNAME_PROD,$PASSWORD_PROD $HOST_PROD; mirror -Rev ./ $URL_PROD --ignore-time --parallel=10 --exclude-glob .git* --exclude .git/ --exclude .env --exclude vendor/ --exclude storage/ --exclude config/ --exclude public/storage/ --exclude public/.htaccess --exclude public/robots.txt --exclude nbproject/"
- - echo "done!"
- only:
- - master
Add Comment
Please, Sign In to add comment