From cbaf5cfb10c75e45b1c1d4d34cf1af985b3dd8bf Mon Sep 17 00:00:00 2001 From: georg Date: Fri, 18 May 2018 09:10:05 +0200 Subject: CI: Ignore 'download' directory while deploying Currently, we don't store the release files in git, which lead to the fact, that they were automatically removed, due to our use of lftps 'mirror' option. This commit fixes this via ignoring this specific directory. Tested via an intermediate commit to ensure this works as expected. Closes #34 --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.gitlab-ci.yml') diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a9f2874..4704231 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -73,7 +73,7 @@ deploy: " > ~/.ssh/known_hosts - tar fxv site.tar.gz # It seems, lftp needs a "dummy" password, even if key-based authentication is used - - lftp -e "mirror -eRv _site www; quit;" -u $DEPLOY_USER,dummy sftp://$DEPLOY_HOST + - lftp -e "mirror -eRv -x ^download/ _site www; quit;" -u $DEPLOY_USER,dummy sftp://$DEPLOY_HOST stage: deploy only: - master@schleuder/schleuder-website -- cgit v1.2.3