This commit is contained in:
parent
3152e71ce7
commit
880bba7743
1 changed files with 4 additions and 23 deletions
27
.drone.yml
27
.drone.yml
|
@ -90,29 +90,6 @@ steps:
|
||||||
from_secret: discord_webhook_id_private
|
from_secret: discord_webhook_id_private
|
||||||
WEBHOOK_TOKEN_PRIVATE:
|
WEBHOOK_TOKEN_PRIVATE:
|
||||||
from_secret: discord_webhook_token_private
|
from_secret: discord_webhook_token_private
|
||||||
commands:
|
|
||||||
- source .env
|
|
||||||
- |-
|
|
||||||
export MESSAGE='{{#success build.status}}
|
|
||||||
✅ Build #{{build.number}} of `{{repo.name}}` succeeded.{{else}}
|
|
||||||
❌ Build #{{build.number}} of `{{repo.name}}` failed.{{/success}}
|
|
||||||
|
|
||||||
📝 Commit by {{commit.author}} on `{{commit.branch}}`:
|
|
||||||
```
|
|
||||||
{{commit.message}}
|
|
||||||
```
|
|
||||||
🌐 {{ build.link }}
|
|
||||||
🌐 '$VERCEL_BUILD_URL
|
|
||||||
- >-
|
|
||||||
drone-discord
|
|
||||||
--webhook-id $WEBHOOK_ID_PRIVATE
|
|
||||||
--webhook-token $WEBHOOK_TOKEN_PRIVATE
|
|
||||||
depends_on:
|
|
||||||
- deploy (production)
|
|
||||||
- deploy (preview)
|
|
||||||
- name: discord notification (dev server)
|
|
||||||
image: appleboy/drone-discord
|
|
||||||
environment:
|
|
||||||
WEBHOOK_ID_DEV_SERVER:
|
WEBHOOK_ID_DEV_SERVER:
|
||||||
from_secret: discord_webhook_id_dev_server
|
from_secret: discord_webhook_id_dev_server
|
||||||
WEBHOOK_TOKEN_DEV_SERVER:
|
WEBHOOK_TOKEN_DEV_SERVER:
|
||||||
|
@ -130,6 +107,10 @@ steps:
|
||||||
```
|
```
|
||||||
🌐 {{ build.link }}
|
🌐 {{ build.link }}
|
||||||
🌐 '$VERCEL_BUILD_URL
|
🌐 '$VERCEL_BUILD_URL
|
||||||
|
- >-
|
||||||
|
drone-discord
|
||||||
|
--webhook-id $WEBHOOK_ID_PRIVATE
|
||||||
|
--webhook-token $WEBHOOK_TOKEN_PRIVATE
|
||||||
- >-
|
- >-
|
||||||
drone-discord
|
drone-discord
|
||||||
--webhook-id $WEBHOOK_ID_DEV_SERVER
|
--webhook-id $WEBHOOK_ID_DEV_SERVER
|
||||||
|
|
Reference in a new issue