diff options
author | Antoine GIRARD <sapk@users.noreply.github.com> | 2020-01-15 03:14:21 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-15 03:14:21 +0100 |
commit | fd761708feb9d19ec7e387e0313336d2e5893987 (patch) | |
tree | 85e70f3bc6f14206b9a217f8a2fee573a78ebbd2 /.drone.yml | |
parent | 9eb67935762fa64c863035379e159f36aa0033bc (diff) | |
download | gitea-fd761708feb9d19ec7e387e0313336d2e5893987.tar.gz gitea-fd761708feb9d19ec7e387e0313336d2e5893987.zip |
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 <matti@mdranta.net>
Diffstat (limited to '.drone.yml')
-rw-r--r-- | .drone.yml | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/.drone.yml b/.drone.yml index 0749177ccb..7477762302 100644 --- a/.drone.yml +++ b/.drone.yml @@ -746,20 +746,22 @@ depends_on: --- kind: pipeline -name: notify +name: notifications platform: os: linux - arch: amd64 - -workspace: - base: /go - path: src/code.gitea.io/gitea + arch: arm64 clone: disable: true -when: +trigger: + branch: + - master + - "release/*" + event: + - push + - tag status: - success - failure @@ -777,9 +779,10 @@ depends_on: steps: - name: discord pull: always - image: appleboy/drone-discord:1.0.0 - environment: - DISCORD_WEBHOOK_ID: + image: appleboy/drone-discord:1.2.4 + settings: + 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 - DISCORD_WEBHOOK_TOKEN: + webhook_token: from_secret: discord_webhook_token |