2023-07-25 20:32:49 +00:00
|
|
|
---
|
|
|
|
when:
|
2023-07-25 20:41:38 +00:00
|
|
|
- ref: refs/heads/main
|
2023-07-25 20:32:49 +00:00
|
|
|
- ref: refs/tags/**
|
|
|
|
|
|
|
|
steps:
|
|
|
|
matrix:
|
|
|
|
image: quay.io/thegeeklab/drone-matrix
|
|
|
|
settings:
|
|
|
|
homeserver:
|
|
|
|
from_secret: matrix_homeserver
|
|
|
|
password:
|
|
|
|
from_secret: matrix_password
|
|
|
|
roomid:
|
|
|
|
from_secret: matrix_roomid
|
|
|
|
template: "Status: **{{ .Build.Status }}**<br/> Build: [{{ .Repo.Owner }}/{{ .Repo.Name }}]({{ .Build.Link }}){{ if .Build.Branch }} ({{ .Build.Branch }}){{ end }} by {{ .Commit.Author }}<br/> Message: {{ .Commit.Message.Title }}"
|
|
|
|
username:
|
|
|
|
from_secret: matrix_username
|
|
|
|
when:
|
|
|
|
- status:
|
|
|
|
- success
|
|
|
|
- failure
|
|
|
|
|
|
|
|
depends_on:
|
|
|
|
- test
|
|
|
|
- container
|
|
|
|
- release
|