31 lines
962 B
YAML
31 lines
962 B
YAML
kind: pipeline
|
|
type: docker
|
|
name: default
|
|
|
|
steps:
|
|
- name: greeting
|
|
image: alpine
|
|
commands:
|
|
- echo hello
|
|
- echo world
|
|
|
|
- name: success
|
|
image: appleboy/drone-discord
|
|
settings:
|
|
webhook_id:
|
|
from_secret: discord_webhook_id
|
|
webhook_token:
|
|
from_secret: discord_webhook_token
|
|
message: >
|
|
{{#success build.status}}
|
|
tests succeeded for commit {{build.commit}} from {{build.author}} in {{build.branch}} on {{repo.name}} {{repo.owner}} {{repo.name}} {{build.status}} {{build.event}} {{build.number}} {{build.commit}} {{build.message}} {{build.branch}} {{build.tag}} {{lowercase build.author}} {{build.link}} {{datetime build.started}} {{datetime build.finished}}
|
|
{{else}}
|
|
test failed for commit {{build.commit}} from {{build.author}} in {{build.branch}} on {{repo.name}}
|
|
{{/success}}
|
|
username: drone
|
|
avatar_url: https://drone.malachy.ie/favicon.png
|
|
when:
|
|
status:
|
|
- success
|
|
- failure
|