From c110d7bae86c196bd5c5d85bd60780bcd18c68de Mon Sep 17 00:00:00 2001 From: Lars Gebhardt-Kusche Date: Fri, 14 Nov 2025 00:19:28 +0100 Subject: [PATCH] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d301278..ad9c6d3 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -15,7 +15,14 @@ deploy:staging: - ls -la script: - 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)." environment: name: staging @@ -38,7 +45,14 @@ deploy:production: - ls -la script: - 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)." environment: name: production