add gitea publish and notify task to drone config

This commit is contained in:
Robert Kaussow 2019-02-09 23:31:01 +01:00
parent c5975e602d
commit da7dc64396

View File

@ -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 }}**<br/> Build: [{{ repo.Owner }}/{{ repo.Name }}]({{ build.link }}) ({{ build.branch }}) by {{ build.author }}<br/> Message: {{ build.message }}"
username:
from_secret: matrix_username
password:
from_secret: matrix_password
depends_on:
- ansible-latest
- ansible-master
when:
status:
- success
- failure