From 0f516db11c41c7f86f0f0be654bac410c1bc5f65 Mon Sep 17 00:00:00 2001 From: Michael Barz Date: Tue, 22 Sep 2020 16:15:28 +0200 Subject: [PATCH] Add after pipelines --- .drone.star | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/.drone.star b/.drone.star index c88022ea9..94a1f7263 100644 --- a/.drone.star +++ b/.drone.star @@ -92,6 +92,12 @@ def main(ctx): ] after = [ + manifest(ctx), + #changelog(ctx), + readme(ctx), + badges(ctx), + website(ctx), + #updateDeployment(ctx) ] return before + stages + after @@ -855,6 +861,46 @@ def generate(module): } ] +def updateDeployment(ctx): + return { + 'kind': 'pipeline', + 'type': 'docker', + 'name': 'updateDeployment', + 'platform': { + 'os': 'linux', + 'arch': 'amd64', + }, + 'steps': [ + { + 'name': 'webhook', + 'image': 'plugins/webhook', + 'settings': { + 'username': { + 'from_secret': 'webhook_username', + }, + 'password': { + 'from_secret': 'webhook_password', + }, + 'method': 'GET', + 'urls': 'https://ocis.owncloud.works/hooks/update-ocis', + } + } + ], + 'depends_on': [ + 'amd64', + 'arm64', + 'arm', + 'linux', + 'darwin', + 'windows', + ], + 'trigger': { + 'ref': [ + 'refs/heads/master', + ], + } + } + def frontend(module): return [ {