Compare commits

...

1 Commits

Author SHA1 Message Date
Christian Richter
df990e3534 test seperate notify pipeline
Some checks reported errors
continuous-integration/drone/pr Build was killed
Signed-off-by: Christian Richter <crichter@owncloud.com>
2022-05-19 14:10:26 +02:00

View File

@@ -1,20 +1,65 @@
def main(ctx):
return [
notify(ctx),
stepPR("amd64", "motsognir"),
stepPR("arm64", "motsognir"),
stepMergeMaster("amd64", "motsognir"),
stepMergeMaster("arm64", "motsognir"),
stepBuildWeekly("amd64", "motsognir"),
stepBuildWeekly("arm64", "motsognir"),
stepPR("amd64", "webtest"),
stepPR("arm64", "webtest"),
stepMergeMaster("amd64", "webtest"),
stepMergeMaster("arm64", "webtest"),
stepBuildWeekly("amd64", "webtest"),
stepBuildWeekly("arm64", "webtest"),
]
def notify(ctx):
return {
"kind": "pipeline",
"type": "docker",
"name": "matrix-notifications",
"clone": {
"disable": True,
},
"steps": [
{
"name": "notify",
"image": "plugins/matrix",
"settings": {
"homeserver": {
"from_secret": "matrix-homeserver"
},
"roomid": {
"from_secret": "matrix-room"
},
"username": {
"from_secret": "matrix-user"
},
"password": {
"from_secret": "matrix-password"
}
}
},
],
"depends_on": [],
"trigger": {
"ref": [
"refs/heads/master",
"refs/heads/release*",
"refs/tags/**",
"refs/pull/**",
],
"status": [
"failure",
"success",
],
},
}
def stepPR(arch, path):
return {
@@ -36,25 +81,8 @@ def stepPR(arch, path):
"tag": "latest-%s" % (arch),
}
},
{
"name": "notify-build-%s-%s" % (path, arch),
"image": "plugins/matrix",
"settings": {
"homeserver": {
"from_secret": "matrix-homeserver"
},
"roomid": {
"from_secret": "matrix-room"
},
"username": {
"from_secret": "matrix-user"
},
"password": {
"from_secret": "matrix-password"
}
}
},
],
"depends_on": ["matrix-notifications"],
"trigger": {
"ref": [
"refs/pull/**",
@@ -92,25 +120,8 @@ def stepMergeMaster(arch, path):
}
}
},
{
"name": "notify-publish-%s-%s" % (path, arch),
"image": "plugins/matrix",
"settings": {
"homeserver": {
"from_secret": "matrix-homeserver"
},
"roomid": {
"from_secret": "matrix-room"
},
"username": {
"from_secret": "matrix-user"
},
"password": {
"from_secret": "matrix-password"
}
}
},
],
"depends_on": ["matrix-notifications"],
"trigger": {
"ref": [
"refs/heads/master",
@@ -148,25 +159,8 @@ def stepBuildWeekly(arch, path):
}
}
},
{
"name": "notify-publish-%s-%s" % (path, arch),
"image": "plugins/matrix",
"settings": {
"homeserver": {
"from_secret": "matrix-homeserver"
},
"roomid": {
"from_secret": "matrix-room"
},
"username": {
"from_secret": "matrix-user"
},
"password": {
"from_secret": "matrix-password"
}
}
},
],
"depends_on": ["matrix-notifications"],
"trigger": {
"ref": [
"refs/heads/master",