diff --git a/.drone.star b/.drone.star index 247ee27..4d01a46 100644 --- a/.drone.star +++ b/.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 }}**
Build: [{{ repo.Owner }}/{{ repo.Name }}]({{ build.link }}) ({{ build.branch }}) by {{ build.author }}
Message: {{ build.message }}', + 'username': { + 'from_secret': 'matrix_username', + }, + }, + }, ], 'depends_on': [], 'trigger': { diff --git a/.drone.yml b/.drone.yml index d9f60d9..820b666 100644 --- a/.drone.yml +++ b/.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 }}**
Build: [{{ repo.Owner }}/{{ repo.Name }}]({{ build.link }}) ({{ build.branch }}) by {{ build.author }}
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 ...