Created
September 17, 2021 05:51
-
-
Save gmizaelmtzhdz/b89cc754e7a27daf806350adfdfe7cd3 to your computer and use it in GitHub Desktop.
Ejemplo #2 - Deploy Gitlab vía FTP
This file contains 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
#Ejemplo #2 - Deploy Gitlab vía FTP | |
image: ubuntu:18.04 | |
before_script: | |
- apt-get update -qy | |
- apt-get install -y lftp | |
build: | |
script: | |
- lftp -c "set ftp:ssl-allow no; open $FTP_SERVER; user $FTP_USERNAME $FTP_PASSWORD; mirror --ignore-time --parallel=10 --include ./*** --exclude README.md --exclude .gitlab-ci.yml --exclude database.sql --exclude package-lock.json --exclude composer.json --exclude composer.lock --exclude db.Dockerfile --exclude db_admin.Dockerfile --exclude development.env --exclude docker-compose.yml --exclude formato_correo1.html --exclude package.json --exclude web.Dockerfile --exclude .git/ --exclude contratos/ --exclude vendor/ --exclude system/ --exclude application/config/ --exclude application/vendor/ --reverse --verbose ./ ./; bye" | |
only: | |
- master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment