diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6784895..47fbced 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -63,8 +63,8 @@ deploy: - chmod 600 ~/.ssh/config script: - - rsync -azvh --delete --exclude "microblog" public/ host-1:/var/www/ - - rsync -azvh --delete --exclude "microblog" public/ host-2:/var/www/ + - rsync -azvh --delete --exclude-from "rsync-exclude.txt" public/ host-1:/var/www/ + - rsync -azvh --delete --exclude-from "rsync-exclude.txt" public/ host-2:/var/www/ rules: - if: '$RENOVATE != "true" && $CI_COMMIT_REF_NAME == "master" && ($CI_PIPELINE_SOURCE == "push" || $CI_PIPELINE_SOURCE == "web")' diff --git a/rsync-exclude.txt b/rsync-exclude.txt new file mode 100644 index 0000000..89cb889 --- /dev/null +++ b/rsync-exclude.txt @@ -0,0 +1,3 @@ +microblog/*** +atom-microblog.xml* +sitemap-microblog.xml*