Compare commits
1 Commits
253aa6f287
...
4458ec8513
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4458ec8513 |
33
.drone.star
33
.drone.star
@@ -2,21 +2,28 @@ def main(ctx):
|
||||
return [
|
||||
stepPR(ctx, "amd64", "motsognir"),
|
||||
stepPR(ctx, "arm64", "motsognir"),
|
||||
stepMergeMaster(ctx, "amd64", "motsognir"),
|
||||
stepMergeMaster(ctx, "arm64", "motsognir"),
|
||||
stepBuildWeekly(ctx, "amd64", "motsognir"),
|
||||
stepBuildWeekly(ctx, "arm64", "motsognir"),
|
||||
stepMergeMaster("amd64", "motsognir"),
|
||||
stepMergeMaster("arm64", "motsognir"),
|
||||
stepBuildWeekly("amd64", "motsognir"),
|
||||
stepBuildWeekly("arm64", "motsognir"),
|
||||
|
||||
stepPR(ctx, "amd64", "webtest"),
|
||||
stepPR(ctx, "arm64", "webtest"),
|
||||
stepMergeMaster(ctx, "amd64", "webtest"),
|
||||
stepMergeMaster(ctx, "arm64", "webtest"),
|
||||
stepBuildWeekly(ctx, "amd64", "webtest"),
|
||||
stepBuildWeekly(ctx, "arm64", "webtest"),
|
||||
stepMergeMaster("amd64", "webtest"),
|
||||
stepMergeMaster("arm64", "webtest"),
|
||||
stepBuildWeekly("amd64", "webtest"),
|
||||
stepBuildWeekly("arm64", "webtest"),
|
||||
|
||||
notify(ctx),
|
||||
]
|
||||
|
||||
def getPipelineNames(pipelines = []):
|
||||
names = []
|
||||
for pipeline in pipelines:
|
||||
names.append(pipeline["name"])
|
||||
return names
|
||||
|
||||
|
||||
def notify(ctx):
|
||||
return {
|
||||
"kind": "pipeline",
|
||||
@@ -81,7 +88,7 @@ def stepPR(ctx, arch, path):
|
||||
}
|
||||
},
|
||||
],
|
||||
"depends_on": [],
|
||||
"depends_on": getPipelineNames([notify(ctx)]),
|
||||
"trigger": {
|
||||
"ref": [
|
||||
"refs/pull/**",
|
||||
@@ -93,7 +100,7 @@ def stepPR(ctx, arch, path):
|
||||
},
|
||||
}
|
||||
|
||||
def stepMergeMaster(ctx, arch, path):
|
||||
def stepMergeMaster(arch, path):
|
||||
return {
|
||||
"kind": "pipeline",
|
||||
"type": "docker",
|
||||
@@ -120,7 +127,7 @@ def stepMergeMaster(ctx, arch, path):
|
||||
}
|
||||
},
|
||||
],
|
||||
"depends_on": [],
|
||||
#"depends_on": [ "matrix-notifications" ],
|
||||
"trigger": {
|
||||
"ref": [
|
||||
"refs/heads/master",
|
||||
@@ -132,7 +139,7 @@ def stepMergeMaster(ctx, arch, path):
|
||||
}
|
||||
}
|
||||
|
||||
def stepBuildWeekly(ctx, arch, path):
|
||||
def stepBuildWeekly(arch, path):
|
||||
return {
|
||||
"kind": "pipeline",
|
||||
"type": "docker",
|
||||
@@ -159,7 +166,7 @@ def stepBuildWeekly(ctx, arch, path):
|
||||
}
|
||||
},
|
||||
],
|
||||
"depends_on": [],
|
||||
#"depends_on": [ "matrix-notifications" ],
|
||||
"trigger": {
|
||||
"ref": [
|
||||
"refs/heads/master",
|
||||
|
||||
Reference in New Issue
Block a user