reconfigure exclusions
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
2025-09-28 18:34:16 +03:00
parent 421a484d2b
commit f05047c6a0
2 changed files with 10 additions and 5 deletions
+8 -5
View File
@@ -15,15 +15,17 @@ steps:
- ssh-keyscan 192.168.0.109 >> ~/.ssh/known_hosts
# Копирование файлов
- rsync -av ./ \
- |
rsync -av \
--exclude='.git' \
--exclude='.woodpecker.yml' \
deployer@192.168.0.109:/opt/testbot-git/
--exclude='.cursorignore' \
./ deployer@192.168.0.109:/opt/testbot-git/
# Или (вариант 2: git clone на целевом сервере)
# - ssh -i ~/.ssh/id_rsa deployer@целевой-сервер "cd /var/www/myapp && git pull"
- ssh -i ~/.ssh/id_rsa deployer@192.168.0.109 \
- |
ssh -i ~/.ssh/id_rsa deployer@192.168.0.109 \
"cd /opt/testbot-git/services && chmod +x post-deploy.sh && ./post-deploy.sh"
# Выполнение команд на целевом сервере
# - ssh -i ~/.ssh/id_rsa deployer@целевой-сервер "
# cd /var/www/myapp &&
@@ -31,6 +33,7 @@ steps:
# sudo systemctl restart myservice &&
# echo '✅ Deploy completed'
# "
when:
event: push
branch: main