From 8fc1cf0df557811a4cd652b0a495a43c67155492 Mon Sep 17 00:00:00 2001
From: fanky <jakub.webisti@gmail.com>
Date: Wed, 21 Apr 2021 10:42:12 +0000
Subject: [PATCH] added FTP deploy

---
 .gitlab-ci.yml | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 835c695..0773265 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -16,7 +16,9 @@ build:
   after_script:
     - TAG=`git describe --tags $(git rev-list --tags --max-count=1)`
     - echo "{\"job_token\":\"$CI_JOB_TOKEN\", \"name\":\"$SITE_NAME\", \"tag\":\"$TAG\" }" > request.json
-    - "curl -H 'Content-Type: application/json' -X POST -d @request.json $WEBHOOK_URL"
+    - "curl -H 'Content-Type: application/json' -X POST -d @request.json $WEBHOOK_URL"    
+    - apt-get update -qq && apt-get install -y -qq lftp
+    - lftp -c "set ftp:ssl-allow no; open -u $USERNAME,$PASSWORD $HOST; mirror -Rev dist/ ./public  --ignore-time --parallel=10 --exclude-glob .git* --exclude .git/"
   artifacts:
     expire_in: 30 min
     paths:
-- 
GitLab