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