small fixes
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Robert Kaussow 2020-02-21 23:18:40 +01:00
parent b71c705e76
commit ea9fd89537
2 changed files with 12 additions and 6 deletions

View File

@ -49,7 +49,6 @@ local PipelineBuild(arch='amd64') = {
{ {
name: 'publish-gitea', name: 'publish-gitea',
image: 'plugins/gitea-release', image: 'plugins/gitea-release',
pull: 'always',
settings: { settings: {
api_key: { from_secret: 'gitea_token' }, api_key: { from_secret: 'gitea_token' },
base_url: 'https://gitea.rknet.org', base_url: 'https://gitea.rknet.org',
@ -87,6 +86,11 @@ local PipelineNotifications(depends_on=[]) = {
password: { from_secret: 'docker_password' }, password: { from_secret: 'docker_password' },
spec: 'manifest.tmpl', spec: 'manifest.tmpl',
}, },
when: {
status: [
'success',
],
},
}, },
{ {
name: 'readme', name: 'readme',
@ -109,9 +113,9 @@ local PipelineNotifications(depends_on=[]) = {
name: 'matrix', name: 'matrix',
image: 'plugins/matrix', image: 'plugins/matrix',
settings: { settings: {
template: 'Status: **{{ build.status }}**<br/> Build: [{{ repo.Owner }}/{{ repo.Name }}]({{ build.link }}) ({{ build.branch }}) by {{ build.author }}<br/> Message: {{ build.message }}',
roomid: { from_secret: 'matrix_roomid' },
homeserver: { from_secret: 'matrix_homeserver' }, homeserver: { from_secret: 'matrix_homeserver' },
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' }, username: { from_secret: 'matrix_username' },
password: { from_secret: 'matrix_password' }, password: { from_secret: 'matrix_password' },
}, },
@ -123,7 +127,6 @@ local PipelineNotifications(depends_on=[]) = {
}, },
}, },
], ],
depends_on: depends_on,
trigger: { trigger: {
ref: [ ref: [
'refs/heads/master', 'refs/heads/master',
@ -134,6 +137,7 @@ local PipelineNotifications(depends_on=[]) = {
'failure', 'failure',
], ],
}, },
depends_on: depends_on,
}; };
[ [

View File

@ -42,7 +42,6 @@ steps:
- refs/tags/** - refs/tags/**
- name: publish-gitea - name: publish-gitea
pull: always
image: plugins/gitea-release image: plugins/gitea-release
settings: settings:
api_key: api_key:
@ -78,6 +77,9 @@ steps:
- ${DRONE_TAG%%.*} - ${DRONE_TAG%%.*}
username: username:
from_secret: docker_username from_secret: docker_username
when:
status:
- success
- name: readme - name: readme
image: sheogorath/readme-to-dockerhub image: sheogorath/readme-to-dockerhub
@ -124,6 +126,6 @@ depends_on:
--- ---
kind: signature kind: signature
hmac: 6a2f2a70cc4190a5b53d031261940b46d75e758c78da024c6945fe4740d70191 hmac: 3a7e5e7004cee14e0fe11fce0fc1e7033b5bb525e4066ad4cc10586d2fc54630
... ...