Skip to content

Commit fd76170

Browse files
sapktechknowlogick
andauthored
ci: run notify on arm64 (#9762)
* ci: run notify on arm64 Free one jobs on amrd64 * Update .drone.yml * Update .drone.yml * Update .drone.yml Based on: https://github.com/appleboy/drone-discord/blob/master/.drone.yml#L339 * improve trigger Co-authored-by: techknowlogick <[email protected]>
1 parent 9eb6793 commit fd76170

File tree

1 file changed

+14
-11
lines changed

1 file changed

+14
-11
lines changed

.drone.yml

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -746,20 +746,22 @@ depends_on:
746746

747747
---
748748
kind: pipeline
749-
name: notify
749+
name: notifications
750750

751751
platform:
752752
os: linux
753-
arch: amd64
754-
755-
workspace:
756-
base: /go
757-
path: src/code.gitea.io/gitea
753+
arch: arm64
758754

759755
clone:
760756
disable: true
761757

762-
when:
758+
trigger:
759+
branch:
760+
- master
761+
- "release/*"
762+
event:
763+
- push
764+
- tag
763765
status:
764766
- success
765767
- failure
@@ -777,9 +779,10 @@ depends_on:
777779
steps:
778780
- name: discord
779781
pull: always
780-
image: appleboy/drone-discord:1.0.0
781-
environment:
782-
DISCORD_WEBHOOK_ID:
782+
image: appleboy/drone-discord:1.2.4
783+
settings:
784+
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"
785+
webhook_id:
783786
from_secret: discord_webhook_id
784-
DISCORD_WEBHOOK_TOKEN:
787+
webhook_token:
785788
from_secret: discord_webhook_token

0 commit comments

Comments
 (0)