kind: pipeline type: docker name: default steps: - name: greeting image: alpine commands: - echo hello - echo world - name: failure image: appleboy/discord settings: webhook_id: from_secret: discord_webhook_id webhook_token: from_secret: discord_webhook_token message: test failed for commit {{build.commit}} from {{build.author}} in {{build.branch}} on {{repo.name}} username: drone avatar_url: https://drone.malachy.ie/favicon.png when: status: - failure - name: success image: appleboy/drone-discord settings: webhook_id: from_secret: discord_webhook_id webhook_token: from_secret: discord_webhook_token message: tests succeeded for commit {{build.commit}} from {{build.author}} in {{build.branch}} on {{repo.name}} username: drone avatar_url: https://drone.malachy.ie/favicon.png when: status: - success