forked from spritsail/alpine
Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
6d1a483ead | |||
67d0500768 | |||
2a2b9c265d | |||
754ef911d5 |
36
.drone.star
36
.drone.star
@ -1,11 +1,12 @@
|
||||
def main(ctx):
|
||||
return [
|
||||
step("3.8"),
|
||||
step("3.9"),
|
||||
step("3.10"),
|
||||
step("3.11",["latest"]),
|
||||
step("edge"),
|
||||
versions = [
|
||||
["3.9",[]],
|
||||
["3.10",[]],
|
||||
["3.11", ["latest"]],
|
||||
["edge", []],
|
||||
["chrislane", ["😍"]],
|
||||
]
|
||||
return [step(v[0], v[1]) for v in versions] + [notify(["build-%s" % v for v, _ in versions])]
|
||||
|
||||
def step(alpinever,tags=[]):
|
||||
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",
|
||||
},
|
||||
},
|
||||
},
|
||||
],
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user