Merge pull request #491 from owncloud/add-webhook-to-ci-build

add webhook step to drone build to update ocis.owncloud.works
This commit is contained in:
David Christofas
2020-08-26 13:48:08 +02:00
committed by GitHub

View File

@@ -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',