add gitea publish and notify task to drone config
This commit is contained in:
parent
c5975e602d
commit
da7dc64396
42
.drone.yml
42
.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 }}**<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
|
||||
|
Reference in New Issue
Block a user