ci: exclude atom/sitemap-microblog.xml

This commit is contained in:
Ming Di Leom 2024-10-04 10:58:06 +00:00
parent 1369f27f40
commit 2730e463db
No known key found for this signature in database
GPG Key ID: 32D3E28E96A695E8
2 changed files with 5 additions and 2 deletions

View File

@ -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")'

3
rsync-exclude.txt Normal file
View File

@ -0,0 +1,3 @@
microblog/***
atom-microblog.xml*
sitemap-microblog.xml*