Compare commits
1 Commits
2d2bd99644
...
4458ec8513
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4458ec8513 |
19
.drone.star
19
.drone.star
@@ -1,14 +1,14 @@
|
||||
def main(ctx):
|
||||
return [
|
||||
stepPR("amd64", "motsognir"),
|
||||
stepPR("arm64", "motsognir"),
|
||||
stepPR(ctx, "amd64", "motsognir"),
|
||||
stepPR(ctx, "arm64", "motsognir"),
|
||||
stepMergeMaster("amd64", "motsognir"),
|
||||
stepMergeMaster("arm64", "motsognir"),
|
||||
stepBuildWeekly("amd64", "motsognir"),
|
||||
stepBuildWeekly("arm64", "motsognir"),
|
||||
|
||||
stepPR("amd64", "webtest"),
|
||||
stepPR("arm64", "webtest"),
|
||||
stepPR(ctx, "amd64", "webtest"),
|
||||
stepPR(ctx, "arm64", "webtest"),
|
||||
stepMergeMaster("amd64", "webtest"),
|
||||
stepMergeMaster("arm64", "webtest"),
|
||||
stepBuildWeekly("amd64", "webtest"),
|
||||
@@ -17,6 +17,13 @@ def main(ctx):
|
||||
notify(ctx),
|
||||
]
|
||||
|
||||
def getPipelineNames(pipelines = []):
|
||||
names = []
|
||||
for pipeline in pipelines:
|
||||
names.append(pipeline["name"])
|
||||
return names
|
||||
|
||||
|
||||
def notify(ctx):
|
||||
return {
|
||||
"kind": "pipeline",
|
||||
@@ -60,7 +67,7 @@ def notify(ctx):
|
||||
},
|
||||
}
|
||||
|
||||
def stepPR(arch, path):
|
||||
def stepPR(ctx, arch, path):
|
||||
return {
|
||||
"kind": "pipeline",
|
||||
"type": "docker",
|
||||
@@ -81,7 +88,7 @@ def stepPR(arch, path):
|
||||
}
|
||||
},
|
||||
],
|
||||
#"depends_on": [ "matrix-notifications" ],
|
||||
"depends_on": getPipelineNames([notify(ctx)]),
|
||||
"trigger": {
|
||||
"ref": [
|
||||
"refs/pull/**",
|
||||
|
||||
Reference in New Issue
Block a user