Compare commits

..

4 Commits

View File

@ -1,11 +1,12 @@
def main(ctx): def main(ctx):
return [ versions = [
step("3.8"), ["3.9",[]],
step("3.9"), ["3.10",[]],
step("3.10"), ["3.11", ["latest"]],
step("3.11",["latest"]), ["edge", []],
step("edge"), ["chrislane", ["😍"]],
] ]
return [step(v[0], v[1]) for v in versions] + [notify(["build-%s" % v for v, _ in versions])]
def step(alpinever,tags=[]): def step(alpinever,tags=[]):
return { return {
@ -57,3 +58,26 @@ def step(alpinever,tags=[]):
] ]
} }
def notify(versions):
return {
"kind": "pipeline",
"name": "notify",
"depends_on": versions,
"when": {
"status": [ "success", "failure" ],
},
"steps": [
{
"name": "notify",
"image": "spritsail/notify",
"environment": {
"WEBHOOK_URL": {
"from_secret": "webhook_url",
},
"NOTIFY_TOKEN": {
"from_secret": "notify_token",
},
},
},
],
}