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