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:
+41
@@ -76,6 +76,7 @@ def main(ctx):
|
|||||||
readme(ctx),
|
readme(ctx),
|
||||||
badges(ctx),
|
badges(ctx),
|
||||||
website(ctx),
|
website(ctx),
|
||||||
|
updateDeployment(ctx)
|
||||||
]
|
]
|
||||||
|
|
||||||
return before + stages + after
|
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):
|
def manifest(ctx):
|
||||||
return {
|
return {
|
||||||
'kind': 'pipeline',
|
'kind': 'pipeline',
|
||||||
|
|||||||
Reference in New Issue
Block a user