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