From e5a7b1ca521a61daa231d0d280d6b22883f72dcb Mon Sep 17 00:00:00 2001
From: Yan Grange <12-grange@users.noreply.git.astron.nl>
Date: Fri, 14 May 2021 20:50:54 +0000
Subject: [PATCH] Exclude CI file when pushing to web server

---
 .gitlab-ci.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 4139140..99f5989 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -23,7 +23,7 @@ deploy-pages:
     - ssh-keyscan dop276.astron.nl >> ~/.ssh/known_hosts
     - chmod 644 ~/.ssh/known_hosts
   script:
-    - rsync . -avr --exclude ".git/"  grange@dop276.astron.nl:/export/astron/grange/public_html/vonl/
+    - rsync . -avr --exclude ".git/" --exclude ".gitlab-ci.yml" grange@dop276.astron.nl:/export/astron/grange/public_html/vonl/
   only:
     - deploy
     - deploy-debug
-- 
GitLab