From b2ae2f1e26437299c27d8869b92a8fd8ff29ad13 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Sun, 19 Jan 2020 00:36:23 +0100 Subject: [PATCH] ensure notification runs always --- .drone.jsonnet | 3 +++ .drone.yml | 6 +++++- overlay/etc/templates/env.tmpl | 1 - 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.drone.jsonnet b/.drone.jsonnet index 465591b..f4611f1 100644 --- a/.drone.jsonnet +++ b/.drone.jsonnet @@ -122,6 +122,9 @@ local PipelineNotifications(depends_on=[]) = { username: { from_secret: 'matrix_username' }, password: { from_secret: 'matrix_password' }, }, + when: { + status: ['success', 'failure'], + }, }, ], trigger: { diff --git a/.drone.yml b/.drone.yml index 3fa8555..305835c 100644 --- a/.drone.yml +++ b/.drone.yml @@ -117,6 +117,10 @@ steps: template: "Status: **{{ build.status }}**
Build: [{{ repo.Owner }}/{{ repo.Name }}]({{ build.link }}) ({{ build.branch }}) by {{ build.author }}
Message: {{ build.message }}" username: from_secret: matrix_username + when: + status: + - success + - failure trigger: ref: @@ -131,6 +135,6 @@ depends_on: --- kind: signature -hmac: 37c5c19d87c11a5908ed228277fd66d945d7e23dd2ad0cab0e02e374dec90719 +hmac: bf96f1fa6c186e8fd1b89c845b62d54206099b7455e4532cd5b7a5b2c8258839 ... diff --git a/overlay/etc/templates/env.tmpl b/overlay/etc/templates/env.tmpl index f52efae..6edeb12 100644 --- a/overlay/etc/templates/env.tmpl +++ b/overlay/etc/templates/env.tmpl @@ -48,7 +48,6 @@ ADMIN_TOKEN={{ getenv "BITWARDENRS_ADMIN_TOKEN" }} {{ end -}} DISABLE_ADMIN_TOKEN=false - PASSWORD_ITERATIONS={{ getenv "BITWARDENRS_PASSWORD_ITERATIONS" "100000" }} SHOW_PASSWORD_HINT={{ getenv "BITWARDENRS_SHOW_PASSWORD_HINT" "true" | conv.Bool }} DOMAIN={{ getenv "BITWARDENRS_DOMAIN" "http://localhost/" }}