summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorgeorg <georg@riseup.net>2019-04-23 18:55:27 +0000
committergeorg <georg@riseup.net>2019-04-23 19:00:01 +0000
commitdd8830cc6555807f56e520ccba2d8d8dfce36628 (patch)
tree467f728ce44033b475c55f42ef277f41ed62bde7 /.gitlab-ci.yml
parente782755547b9391481041cbeae1f2aab60fc6235 (diff)
CI: deploy: ignore 'dev' directory (regression fix)
Otherwise, if the master branch is deployed, the 'dev' directory is removed, which possibly contains data we want to keep, for example code coverage reports or proposed website changes. This commit fixes a regression introduced in 4e0c624ffbfa12a760acbe55ba1410bcc71749b7. It was tested via an intermediate commit to ensure it works as expected. Relates !71
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml2
1 files changed, 1 insertions, 1 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 3bacb25..4153a4d 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -53,7 +53,7 @@ deploy:
DEPLOY_SLUG="www";
export DEPLOY_SLUG;
fi
- - lftp -e "mirror -eRv -x ^download/ _site $DEPLOY_SLUG; quit;" -u $DEPLOY_USER,dummy sftp://$DEPLOY_HOST
+ - lftp -e "mirror -eRv -x ^dev/ -x ^download/ _site $DEPLOY_SLUG; quit;" -u $DEPLOY_USER,dummy sftp://$DEPLOY_HOST
# TODO: Implement clean up: Remove the review dir once the merge to master happened.
stage: deploy
# It's currently not possible to use env vars which are / were set in the script: part above.