test/.drone.yml
2021-06-03 23:35:00 +01:00

31 lines
944 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}} {{build.started}} {{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