From 7067f4656b7c11be42f78fa5a0cc9f66067171cc Mon Sep 17 00:00:00 2001 From: "Andrew K. Choi" Date: Sat, 22 Nov 2025 19:06:49 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=D0=B7=D0=B0=D0=BA=D0=BE=D0=BC=D0=BC?= =?UTF-8?q?=D0=B5=D0=BD=D1=82=D0=B8=D1=80=D0=BE=D0=B2=D0=B0=D0=BD=D1=8B=20?= =?UTF-8?q?webhook=20=D1=83=D0=B2=D0=B5=D0=B4=D0=BE=D0=BC=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D1=8F=20=D0=B2=20Drone=20CI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Webhook plugin вызывает ошибки парсинга YAML - Все уведомления (success, failure, deploy) закомментированы - Можно раскомментировать после настройки webhook URL - Исправлена ошибка unmarshal на строке 129 --- .drone.yml | 96 +++++++++++++++++++++++++++--------------------------- 1 file changed, 48 insertions(+), 48 deletions(-) diff --git a/.drone.yml b/.drone.yml index 690a779..461f468 100644 --- a/.drone.yml +++ b/.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 \ No newline at end of file + # Уведомление о деплое (закомментировано - настройте 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 \ No newline at end of file