Update .gitlab-ci.yml file
This commit is contained in:
@@ -15,7 +15,14 @@ deploy:staging:
|
|||||||
- ls -la
|
- ls -la
|
||||||
script:
|
script:
|
||||||
- echo "🚀 Deploy (staging) via FTPS to ${FTP_HOST}:${FTP_PATH_STAGING} ..."
|
- echo "🚀 Deploy (staging) via FTPS to ${FTP_HOST}:${FTP_PATH_STAGING} ..."
|
||||||
- lftp -u "${FTP_USER}","${FTP_PASSWORD}" "${FTP_HOST}" -e "set ftp:ssl-force true; set ftp:passive-mode true; set ftp:ssl-protect-data true; set ssl:verify-certificate no; mirror -R --delete ./ ${FTP_PATH_STAGING}; bye"
|
- lftp -u "${FTP_USER}","${FTP_PASSWORD}" "${FTP_HOST}" -e "set ftp:ssl-force true; set ftp:passive-mode true; set ftp:ssl-protect-data true; set ssl:verify-certificate no; mirror -R --delete \
|
||||||
|
--exclude .git \
|
||||||
|
--exclude .gitlab-ci.yml \
|
||||||
|
--exclude node_modules \
|
||||||
|
--exclude .vscode \
|
||||||
|
--exclude .DS_Store \
|
||||||
|
--exclude README.md \
|
||||||
|
./ ${FTP_PATH_STAGING}; bye"
|
||||||
- echo "✅ Deploy finished (staging)."
|
- echo "✅ Deploy finished (staging)."
|
||||||
environment:
|
environment:
|
||||||
name: staging
|
name: staging
|
||||||
@@ -38,7 +45,14 @@ deploy:production:
|
|||||||
- ls -la
|
- ls -la
|
||||||
script:
|
script:
|
||||||
- echo "🚀 Deploy (production) via FTPS to ${FTP_HOST}:${FTP_PATH_PROD} ..."
|
- echo "🚀 Deploy (production) via FTPS to ${FTP_HOST}:${FTP_PATH_PROD} ..."
|
||||||
- lftp -u "${FTP_USER}","${FTP_PASSWORD}" "${FTP_HOST}" -e "set ftp:ssl-force true; set ftp:passive-mode true; set ftp:ssl-protect-data true; set ssl:verify-certificate no; mirror -R --delete ./ ${FTP_PATH_PROD}; bye"
|
- lftp -u "${FTP_USER}","${FTP_PASSWORD}" "${FTP_HOST}" -e "set ftp:ssl-force true; set ftp:passive-mode true; set ftp:ssl-protect-data true; set ssl:verify-certificate no; mirror -R --delete \
|
||||||
|
--exclude .git \
|
||||||
|
--exclude .gitlab-ci.yml \
|
||||||
|
--exclude node_modules \
|
||||||
|
--exclude .vscode \
|
||||||
|
--exclude .DS_Store \
|
||||||
|
--exclude README.md \
|
||||||
|
./ ${FTP_PATH_PROD}; bye"
|
||||||
- echo "✅ Deploy finished (production)."
|
- echo "✅ Deploy finished (production)."
|
||||||
environment:
|
environment:
|
||||||
name: production
|
name: production
|
||||||
|
|||||||
Reference in New Issue
Block a user