This commit is contained in:
35
.drone.yml
35
.drone.yml
@@ -178,40 +178,7 @@ steps:
|
||||
event:
|
||||
- push
|
||||
|
||||
# 10. Уведомления через Slack (если настроено)
|
||||
- name: notify-slack
|
||||
image: plugins/slack
|
||||
settings:
|
||||
webhook:
|
||||
from_secret: slack_webhook
|
||||
channel: "#catlink-ci"
|
||||
username: "Drone CI"
|
||||
template: |
|
||||
{{#success build.status}}
|
||||
✅ *Build {{build.number}} succeeded*
|
||||
📁 Repository: {{repo.name}}
|
||||
🌿 Branch: {{build.branch}}
|
||||
👤 Author: {{build.author}}
|
||||
📝 Commit: {{truncate build.commit 8}}
|
||||
🔗 {{build.link}}
|
||||
{{else}}
|
||||
❌ *Build {{build.number}} failed*
|
||||
📁 Repository: {{repo.name}}
|
||||
🌿 Branch: {{build.branch}}
|
||||
👤 Author: {{build.author}}
|
||||
📝 Commit: {{truncate build.commit 8}}
|
||||
🔗 {{build.link}}
|
||||
{{/success}}
|
||||
depends_on:
|
||||
- deploy-production
|
||||
- deploy-staging
|
||||
when:
|
||||
status:
|
||||
- success
|
||||
- failure
|
||||
failure: ignore # Не падаем если Slack не настроен
|
||||
|
||||
# 11. Простые уведомления в логах
|
||||
# 10. Простые уведомления в логах
|
||||
- name: notify-console
|
||||
image: alpine:latest
|
||||
commands:
|
||||
|
||||
Reference in New Issue
Block a user