|
|
@ -746,20 +746,22 @@ depends_on:
|
|
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
kind: pipeline
|
|
|
|
name: notify
|
|
|
|
name: notifications
|
|
|
|
|
|
|
|
|
|
|
|
platform:
|
|
|
|
platform:
|
|
|
|
os: linux
|
|
|
|
os: linux
|
|
|
|
arch: amd64
|
|
|
|
arch: arm64
|
|
|
|
|
|
|
|
|
|
|
|
workspace:
|
|
|
|
|
|
|
|
base: /go
|
|
|
|
|
|
|
|
path: src/code.gitea.io/gitea
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
clone:
|
|
|
|
clone:
|
|
|
|
disable: true
|
|
|
|
disable: true
|
|
|
|
|
|
|
|
|
|
|
|
when:
|
|
|
|
trigger:
|
|
|
|
|
|
|
|
branch:
|
|
|
|
|
|
|
|
- master
|
|
|
|
|
|
|
|
- "release/*"
|
|
|
|
|
|
|
|
event:
|
|
|
|
|
|
|
|
- push
|
|
|
|
|
|
|
|
- tag
|
|
|
|
status:
|
|
|
|
status:
|
|
|
|
- success
|
|
|
|
- success
|
|
|
|
- failure
|
|
|
|
- failure
|
|
|
@ -777,9 +779,10 @@ depends_on:
|
|
|
|
steps:
|
|
|
|
steps:
|
|
|
|
- name: discord
|
|
|
|
- name: discord
|
|
|
|
pull: always
|
|
|
|
pull: always
|
|
|
|
image: appleboy/drone-discord:1.0.0
|
|
|
|
image: appleboy/drone-discord:1.2.4
|
|
|
|
environment:
|
|
|
|
settings:
|
|
|
|
DISCORD_WEBHOOK_ID:
|
|
|
|
message: "{{#success build.status}} ✅ Build #{{build.number}} of `{{repo.name}}` succeeded.\n\n📝 Commit by {{commit.author}} on `{{commit.branch}}`:\n``` {{commit.message}} ```\n\n🌐 {{ build.link }} {{else}} ❌ Build #{{build.number}} of `{{repo.name}}` failed.\n\n📝 Commit by {{commit.author}} on `{{commit.branch}}`:\n``` {{commit.message}} ```\n\n🌐 {{ build.link }} {{/success}}\n"
|
|
|
|
|
|
|
|
webhook_id:
|
|
|
|
from_secret: discord_webhook_id
|
|
|
|
from_secret: discord_webhook_id
|
|
|
|
DISCORD_WEBHOOK_TOKEN:
|
|
|
|
webhook_token:
|
|
|
|
from_secret: discord_webhook_token
|
|
|
|
from_secret: discord_webhook_token
|
|
|
|