This commit is contained in:
parent
da057bb765
commit
d3d229bdda
@ -1,25 +1,23 @@
|
||||
# https://woodpecker-ci.org/docs/usage/intro
|
||||
pipeline:
|
||||
|
||||
notify:
|
||||
# http://plugins.drone.io/appleboy/drone-discord/
|
||||
image: appleboy/drone-discord
|
||||
webhook_id: 901853296384438312
|
||||
# from_secret: discord_webhook_id
|
||||
webhook_token: NFIwEVtLxgcaFIbeBHCRS7WuL2rPrQuzr6wsrraqLH_WUbfk-en6Xx_SkGsLm7JBt6O9
|
||||
message: "test"
|
||||
# from_secret: discord_webhook_token
|
||||
# message: >
|
||||
# {{#success build.status}}
|
||||
# build {{build.number}} succeeded. Good job.
|
||||
# {{else}}
|
||||
# build {{build.number}} failed. Fix me please.
|
||||
# {{/success}}
|
||||
# secrets: [ discord_id, discord_token]
|
||||
|
||||
build_and_test:
|
||||
image: rust
|
||||
commands:
|
||||
- cargo build --release
|
||||
- cargo test --release
|
||||
|
||||
notify:
|
||||
# http://plugins.drone.io/appleboy/drone-discord/
|
||||
image: appleboy/drone-discord
|
||||
webhook_id:
|
||||
from_secret: discord_webhook_id
|
||||
webhook_token:
|
||||
from_secret: discord_webhook_token
|
||||
message: >
|
||||
{{#success build.status}}
|
||||
build {{build.number}} succeeded. Good job.
|
||||
{{else}}
|
||||
build {{build.number}} failed. Fix me please.
|
||||
{{/success}}
|
||||
# secrets: [ discord_id, discord_token]
|
Loading…
Reference in New Issue
Block a user