diff --git a/.drone.star b/.drone.star index b383b2bf0b..9bf384096b 100644 --- a/.drone.star +++ b/.drone.star @@ -76,6 +76,7 @@ def main(ctx): readme(ctx), badges(ctx), website(ctx), + updateDeployment(ctx) ] return before + stages + after @@ -612,6 +613,46 @@ def binary(ctx, name): }, } +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 manifest(ctx): return { 'kind': 'pipeline',