2023-07-25 20:32:49 +00:00
|
|
|
---
|
|
|
|
when:
|
2023-07-26 18:43:03 +00:00
|
|
|
- event: [tag]
|
|
|
|
- event: [push, manual]
|
2023-07-25 21:43:19 +00:00
|
|
|
branch:
|
|
|
|
- ${CI_REPO_DEFAULT_BRANCH}
|
2023-07-26 18:43:03 +00:00
|
|
|
|
|
|
|
runs_on: [success, failure]
|
2023-07-25 20:32:49 +00:00
|
|
|
|
|
|
|
steps:
|
|
|
|
matrix:
|
|
|
|
image: quay.io/thegeeklab/drone-matrix
|
|
|
|
settings:
|
|
|
|
homeserver:
|
|
|
|
from_secret: matrix_homeserver
|
|
|
|
password:
|
|
|
|
from_secret: matrix_password
|
|
|
|
roomid:
|
|
|
|
from_secret: matrix_roomid
|
2023-07-26 18:43:03 +00:00
|
|
|
template: >-
|
|
|
|
Status: **{{ .Build.Status }}**<br/>
|
|
|
|
Build: [{{ .Repo.Owner }}/{{ .Repo.Name }}]({{ .Build.Link }}){{ if .Build.Branch }} ({{ .Build.Branch }}){{ end }} by {{ .Commit.Author }}<br/>
|
2023-07-26 18:56:02 +00:00
|
|
|
Message: {{ .Commit.Message.Title }}
|
2023-07-25 20:32:49 +00:00
|
|
|
username:
|
|
|
|
from_secret: matrix_username
|
|
|
|
when:
|
2023-07-26 18:43:03 +00:00
|
|
|
- status: [success, failure]
|
2023-07-25 20:32:49 +00:00
|
|
|
|
|
|
|
depends_on:
|
|
|
|
- test
|
|
|
|
- container
|
|
|
|
- release
|