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