mirror of
https://github.com/thegeeklab/github-releases-notifier.git
synced 2024-11-24 01:20:38 +00:00
add matrix notification and dockerhub readme
This commit is contained in:
parent
c551cd67ad
commit
1b24acfe2e
35
.drone.star
35
.drone.star
@ -201,6 +201,22 @@ def notification():
|
||||
]
|
||||
},
|
||||
},
|
||||
{
|
||||
'name': 'readme',
|
||||
'image': 'sheogorath/readme-to-dockerhub',
|
||||
'environment': {
|
||||
'DOCKERHUB_USERNAME': {
|
||||
'from_secret': 'docker_username'
|
||||
},
|
||||
'DOCKERHUB_PASSWORD': {
|
||||
'from_secret': 'docker_password'
|
||||
},
|
||||
'DOCKERHUB_REPO_PREFIX': 'xoxys',
|
||||
'DOCKERHUB_REPO_NAME': 'github-releases-notifier',
|
||||
'README_PATH': 'README.md',
|
||||
'SHORT_DESCRIPTION': 'Receive Slack notifications for new GitHub releases'
|
||||
},
|
||||
},
|
||||
{
|
||||
'name': 'microbadger',
|
||||
'image': 'plugins/webhook',
|
||||
@ -215,6 +231,25 @@ def notification():
|
||||
]
|
||||
},
|
||||
},
|
||||
{
|
||||
'name': 'matrix',
|
||||
'image': 'plugins/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 }}) ({{ build.branch }}) by {{ build.author }}<br/> Message: {{ build.message }}',
|
||||
'username': {
|
||||
'from_secret': 'matrix_username',
|
||||
},
|
||||
},
|
||||
},
|
||||
],
|
||||
'depends_on': [],
|
||||
'trigger': {
|
||||
|
27
.drone.yml
27
.drone.yml
@ -286,6 +286,18 @@ steps:
|
||||
status:
|
||||
- success
|
||||
|
||||
- name: readme
|
||||
image: sheogorath/readme-to-dockerhub
|
||||
environment:
|
||||
DOCKERHUB_PASSWORD:
|
||||
from_secret: docker_password
|
||||
DOCKERHUB_REPO_NAME: github-releases-notifier
|
||||
DOCKERHUB_REPO_PREFIX: xoxys
|
||||
DOCKERHUB_USERNAME:
|
||||
from_secret: docker_username
|
||||
README_PATH: README.md
|
||||
SHORT_DESCRIPTION: Receive Slack notifications for new GitHub releases
|
||||
|
||||
- name: microbadger
|
||||
image: plugins/webhook
|
||||
settings:
|
||||
@ -295,6 +307,19 @@ steps:
|
||||
status:
|
||||
- success
|
||||
|
||||
- name: matrix
|
||||
image: plugins/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 }}) ({{ build.branch }}) by {{ build.author }}<br/> Message: {{ build.message }}"
|
||||
username:
|
||||
from_secret: matrix_username
|
||||
|
||||
trigger:
|
||||
ref:
|
||||
- refs/heads/master
|
||||
@ -310,6 +335,6 @@ depends_on:
|
||||
|
||||
---
|
||||
kind: signature
|
||||
hmac: 0de8af9792e89d979830af171dfe80d182026c65bd31261e8d142f112078b51b
|
||||
hmac: 48723ecce577b6addd70c457f07360a1986bbb43b56034619bf9843efc797a4a
|
||||
|
||||
...
|
||||
|
Loading…
Reference in New Issue
Block a user