diff --git a/.woodpecker.yml b/.woodpecker.yml index 0d0f69c..7d02355 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -1,6 +1,21 @@ pipeline: - test: + build_and_test: image: rust commands: - - cargo build + - cargo build --release - cargo test + + notify: + # http://plugins.drone.io/appleboy/drone-discord/ + image: appleboy/drone-discord + settings: + webhook_id: + from_secret: discord_id + webhook_token: + from_secret: discord_token + message: > + {{#success build.status}} + build {{build.number}} succeeded. Good job. + {{else}} + build {{build.number}} failed. Fix me please. + {{/success}}