2021-10-24 23:36:30 +02:00
|
|
|
# https://woodpecker-ci.org/docs/usage/intro
|
2021-10-24 13:18:43 +02:00
|
|
|
pipeline:
|
2021-10-25 00:14:11 +02:00
|
|
|
|
2021-10-27 16:53:36 +02:00
|
|
|
#build_and_test:
|
|
|
|
# image: rust
|
|
|
|
# commands:
|
|
|
|
# - cargo build --release
|
|
|
|
# - cargo test --release
|
2021-10-27 16:08:28 +02:00
|
|
|
|
2021-10-27 16:15:25 +02:00
|
|
|
notify:
|
|
|
|
# http://plugins.drone.io/appleboy/drone-discord/
|
|
|
|
image: appleboy/drone-discord
|
2021-10-27 16:55:46 +02:00
|
|
|
webhook_id: $discord_webhook_id
|
2021-10-27 16:44:12 +02:00
|
|
|
# from_secret: discord_webhook_id
|
2021-10-27 16:55:46 +02:00
|
|
|
webhook_token: $discord_webhook_token
|
2021-10-27 16:44:12 +02:00
|
|
|
# from_secret: discord_webhook_token
|
2021-10-27 16:55:46 +02:00
|
|
|
secrets: [ discord_webhook_id, discord_webhook_token]
|
2021-10-27 16:38:27 +02:00
|
|
|
|
|
|
|
message: "test"
|
2021-10-27 16:26:36 +02:00
|
|
|
#message: >
|
|
|
|
# {{#success build.status}}
|
|
|
|
# build {{build.number}} succeeded. Good job.
|
|
|
|
# {{else}}
|
|
|
|
# build {{build.number}} failed. Fix me please.
|
2021-10-27 16:55:46 +02:00
|
|
|
# {{/success}}
|