fix: закомментированы webhook уведомления в Drone CI
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Some checks reported errors
continuous-integration/drone/push Build encountered an error
- Webhook plugin вызывает ошибки парсинга YAML - Все уведомления (success, failure, deploy) закомментированы - Можно раскомментировать после настройки webhook URL - Исправлена ошибка unmarshal на строке 129
This commit is contained in:
96
.drone.yml
96
.drone.yml
@@ -134,40 +134,40 @@ steps:
|
||||
event:
|
||||
- push
|
||||
|
||||
# Шаг 7: Уведомления о результатах
|
||||
- name: notify-success
|
||||
image: plugins/webhook
|
||||
settings:
|
||||
urls: https://discord.com/api/webhooks/YOUR_WEBHOOK_URL
|
||||
content_type: application/json
|
||||
template: |
|
||||
{
|
||||
"content": "✅ **Build Success** - Lottery Bot\n**Branch:** {{build.branch}}\n**Commit:** {{build.commit}}\n**Build:** #{{build.number}}\n**Author:** {{build.author}}"
|
||||
}
|
||||
when:
|
||||
status:
|
||||
- success
|
||||
branch:
|
||||
- main
|
||||
event:
|
||||
- push
|
||||
# Шаг 7: Уведомления о результатах (закомментировано - настройте webhook URL)
|
||||
# - name: notify-success
|
||||
# image: plugins/webhook
|
||||
# settings:
|
||||
# urls: https://discord.com/api/webhooks/YOUR_WEBHOOK_URL
|
||||
# content_type: application/json
|
||||
# template: |
|
||||
# {
|
||||
# "content": "✅ **Build Success** - Lottery Bot\n**Branch:** {{build.branch}}\n**Commit:** {{build.commit}}\n**Build:** #{{build.number}}\n**Author:** {{build.author}}"
|
||||
# }
|
||||
# when:
|
||||
# status:
|
||||
# - success
|
||||
# branch:
|
||||
# - main
|
||||
# event:
|
||||
# - push
|
||||
|
||||
- name: notify-failure
|
||||
image: plugins/webhook
|
||||
settings:
|
||||
urls: https://discord.com/api/webhooks/YOUR_WEBHOOK_URL
|
||||
content_type: application/json
|
||||
template: |
|
||||
{
|
||||
"content": "❌ **Build Failed** - Lottery Bot\n**Branch:** {{build.branch}}\n**Commit:** {{build.commit}}\n**Build:** #{{build.number}}\n**Author:** {{build.author}}\n**Logs:** {{build.link}}"
|
||||
}
|
||||
when:
|
||||
status:
|
||||
- failure
|
||||
branch:
|
||||
- main
|
||||
event:
|
||||
- push
|
||||
# - name: notify-failure
|
||||
# image: plugins/webhook
|
||||
# settings:
|
||||
# urls: https://discord.com/api/webhooks/YOUR_WEBHOOK_URL
|
||||
# content_type: application/json
|
||||
# template: |
|
||||
# {
|
||||
# "content": "❌ **Build Failed** - Lottery Bot\n**Branch:** {{build.branch}}\n**Commit:** {{build.commit}}\n**Build:** #{{build.number}}\n**Author:** {{build.author}}\n**Logs:** {{build.link}}"
|
||||
# }
|
||||
# when:
|
||||
# status:
|
||||
# - failure
|
||||
# branch:
|
||||
# - main
|
||||
# event:
|
||||
# - push
|
||||
|
||||
# Сервисы для тестов
|
||||
services:
|
||||
@@ -230,18 +230,18 @@ steps:
|
||||
branch:
|
||||
- main
|
||||
|
||||
# Уведомление о деплое
|
||||
- name: notify-deploy
|
||||
image: plugins/webhook
|
||||
settings:
|
||||
urls: https://discord.com/api/webhooks/YOUR_WEBHOOK_URL
|
||||
content_type: application/json
|
||||
template: |
|
||||
{
|
||||
"content": "🚀 **Deployment Complete** - Lottery Bot\n**Environment:** Staging\n**Build:** #{{build.number}}\n**Commit:** {{build.commit}}"
|
||||
}
|
||||
when:
|
||||
status:
|
||||
- success
|
||||
branch:
|
||||
- main
|
||||
# Уведомление о деплое (закомментировано - настройте webhook URL)
|
||||
# - name: notify-deploy
|
||||
# image: plugins/webhook
|
||||
# settings:
|
||||
# urls: https://discord.com/api/webhooks/YOUR_WEBHOOK_URL
|
||||
# content_type: application/json
|
||||
# template: |
|
||||
# {
|
||||
# "content": "🚀 **Deployment Complete** - Lottery Bot\n**Environment:** Staging\n**Build:** #{{build.number}}\n**Commit:** {{build.commit}}"
|
||||
# }
|
||||
# when:
|
||||
# status:
|
||||
# - success
|
||||
# branch:
|
||||
# - main
|
||||
Reference in New Issue
Block a user