fix: закомментированы webhook уведомления в Drone CI
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:
2025-11-22 19:06:49 +09:00
parent 9db201551b
commit 7067f4656b

View File

@@ -134,40 +134,40 @@ steps:
event: event:
- push - push
# Шаг 7: Уведомления о результатах # Шаг 7: Уведомления о результатах (закомментировано - настройте webhook URL)
- name: notify-success # - name: notify-success
image: plugins/webhook # image: plugins/webhook
settings: # settings:
urls: https://discord.com/api/webhooks/YOUR_WEBHOOK_URL # urls: https://discord.com/api/webhooks/YOUR_WEBHOOK_URL
content_type: application/json # content_type: application/json
template: | # template: |
{ # {
"content": "✅ **Build Success** - Lottery Bot\n**Branch:** {{build.branch}}\n**Commit:** {{build.commit}}\n**Build:** #{{build.number}}\n**Author:** {{build.author}}" # "content": "✅ **Build Success** - Lottery Bot\n**Branch:** {{build.branch}}\n**Commit:** {{build.commit}}\n**Build:** #{{build.number}}\n**Author:** {{build.author}}"
} # }
when: # when:
status: # status:
- success # - success
branch: # branch:
- main # - main
event: # event:
- push # - push
- name: notify-failure # - name: notify-failure
image: plugins/webhook # image: plugins/webhook
settings: # settings:
urls: https://discord.com/api/webhooks/YOUR_WEBHOOK_URL # urls: https://discord.com/api/webhooks/YOUR_WEBHOOK_URL
content_type: application/json # content_type: application/json
template: | # 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}}" # "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: # when:
status: # status:
- failure # - failure
branch: # branch:
- main # - main
event: # event:
- push # - push
# Сервисы для тестов # Сервисы для тестов
services: services:
@@ -230,18 +230,18 @@ steps:
branch: branch:
- main - main
# Уведомление о деплое # Уведомление о деплое (закомментировано - настройте webhook URL)
- name: notify-deploy # - name: notify-deploy
image: plugins/webhook # image: plugins/webhook
settings: # settings:
urls: https://discord.com/api/webhooks/YOUR_WEBHOOK_URL # urls: https://discord.com/api/webhooks/YOUR_WEBHOOK_URL
content_type: application/json # content_type: application/json
template: | # template: |
{ # {
"content": "🚀 **Deployment Complete** - Lottery Bot\n**Environment:** Staging\n**Build:** #{{build.number}}\n**Commit:** {{build.commit}}" # "content": "🚀 **Deployment Complete** - Lottery Bot\n**Environment:** Staging\n**Build:** #{{build.number}}\n**Commit:** {{build.commit}}"
} # }
when: # when:
status: # status:
- success # - success
branch: # branch:
- main # - main