diff options
author | georg <georg@riseup.net> | 2018-05-18 09:10:05 +0200 |
---|---|---|
committer | georg <georg@riseup.net> | 2018-05-18 09:35:32 +0200 |
commit | cbaf5cfb10c75e45b1c1d4d34cf1af985b3dd8bf (patch) | |
tree | 9d97fc9b1fd2d1c1b7cffe13d7767202c9d2ad64 /.gitlab-ci.yml | |
parent | aff03cf941f58daea9c0e7aded38ef4749e36f07 (diff) |
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
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 2 |
1 files changed, 1 insertions, 1 deletions
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 |