From 2730e463db9914fdbb72edd8f49c16a60bc1c952 Mon Sep 17 00:00:00 2001 From: Ming Di Leom <2809763-curben@users.noreply.gitlab.com> Date: Fri, 4 Oct 2024 10:58:06 +0000 Subject: [PATCH] ci: exclude atom/sitemap-microblog.xml --- .gitlab-ci.yml | 4 ++-- rsync-exclude.txt | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 rsync-exclude.txt 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*