Add after pipelines

This commit is contained in:
Michael Barz
2020-09-22 16:15:28 +02:00
parent a46ff5d270
commit 0f516db11c
+46
View File
@@ -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 [
{