Compare commits
1 Commits
a7f916538b
...
584184e98e
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
584184e98e |
107
.drone.star
107
.drone.star
@@ -6,15 +6,66 @@ def main(ctx):
|
||||
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"),
|
||||
|
||||
notify(ctx),
|
||||
]
|
||||
|
||||
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": [
|
||||
"docker-build-motsognir-amd64",
|
||||
"docker-build-webtest-amd64",
|
||||
"docker-publish-motsognir-amd64",
|
||||
"docker-publish-webtest-amd64",
|
||||
"docker-publish-weekly-motsognir-amd64",
|
||||
"docker-publish-weekly-webtest-amd64",
|
||||
],
|
||||
"trigger": {
|
||||
"ref": [
|
||||
"refs/heads/master",
|
||||
"refs/heads/release*",
|
||||
"refs/tags/**",
|
||||
"refs/pull/**",
|
||||
],
|
||||
"status": [
|
||||
"failure",
|
||||
"success",
|
||||
],
|
||||
},
|
||||
}
|
||||
|
||||
def stepPR(arch, path):
|
||||
return {
|
||||
@@ -36,24 +87,6 @@ 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"
|
||||
}
|
||||
}
|
||||
},
|
||||
],
|
||||
"trigger": {
|
||||
"ref": [
|
||||
@@ -92,24 +125,6 @@ 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"
|
||||
}
|
||||
}
|
||||
},
|
||||
],
|
||||
"trigger": {
|
||||
"ref": [
|
||||
@@ -148,24 +163,6 @@ 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"
|
||||
}
|
||||
}
|
||||
},
|
||||
],
|
||||
"trigger": {
|
||||
"ref": [
|
||||
|
||||
Reference in New Issue
Block a user