From da7dc643968094111d139e05091c2fcd74a57d63 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Sat, 9 Feb 2019 23:31:01 +0100 Subject: [PATCH] add gitea publish and notify task to drone config --- .drone.yml | 42 ++++++++++++++++++++++++++++++------------ 1 file changed, 30 insertions(+), 12 deletions(-) diff --git a/.drone.yml b/.drone.yml index ea76c81..c51c539 100644 --- a/.drone.yml +++ b/.drone.yml @@ -48,15 +48,33 @@ steps: - push - tag - # - name: publish - # image: plugins/gitea-release - # settings: - # api_key: - # from_secret: github_token - # files: - # - rpms/x86_64/* - # - sha256sum.txt - # title: $${DRONE_TAG} - # when: - # event: - # - tag + - name: publish + image: plugins/gitea-release + settings: + api_key: + from_secret: gitea_token + files: + - rpms/x86_64/* + - sha256sum.txt + title: $${DRONE_TAG} + when: + event: + - tag + + - name: notify + image: plugins/matrix + settings: + homeserver: https://matrix.rknet.org + roomid: MtidqQXWWAtQcByBhH:rknet.org + template: "Status: **{{ build.status }}**
Build: [{{ repo.Owner }}/{{ repo.Name }}]({{ build.link }}) ({{ build.branch }}) by {{ build.author }}
Message: {{ build.message }}" + username: + from_secret: matrix_username + password: + from_secret: matrix_password + depends_on: + - ansible-latest + - ansible-master + when: + status: + - success + - failure