Commit 871fbfe6 authored by root's avatar root
Browse files

imporove rsync filters

parent dafc2d00
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -22,7 +22,7 @@
        export PROJECT_FILTER="rsync-filter-${PROJECT_CMS_TYPE}"
      fi

    - rsync -avz --chown=33:33 --numeric-ids --delete -e "ssh -o StrictHostKeyChecking=no -o IdentitiesOnly=yes -i $HOME/.ssh/deploy.key " --filter="merge rsync-filter" --filter="merge $PROJECT_FILTER" $CI_PROJECT_DIR/www/ root@${!PROJECT_SERVER}::www/${!PROJECT_SITE}/www/
    - rsync -avz --chown=33:33 --numeric-ids --delete -e "ssh -o StrictHostKeyChecking=no -o IdentitiesOnly=yes -i $HOME/.ssh/deploy.key " --filter="merge rsync-filter" --filter="merge $PROJECT_FILTER" --dry-run $CI_PROJECT_DIR/ root@${!PROJECT_SERVER}::www/${!PROJECT_SITE}/
  only:
    refs:
    - beta
+2 −0
Original line number Diff line number Diff line
@@ -2,3 +2,5 @@
# deleted by deployment.
protect /www/bitrix/***
protect /www/upload/***
include /www/local/***
exclude /www/**
+1 −0
Original line number Diff line number Diff line
@@ -5,3 +5,4 @@ protect /www/cms/***
protect /www/library/***
protect /www/themes/*
protect /www/plugins/*
exclude /www/**
+2 −0
Original line number Diff line number Diff line
@@ -15,3 +15,5 @@ exclude .env.project
protect /vendor/***
protect /logs/***
protect /meta.yml
protect .ftpaccess
protect .htaccess