Compare commits
1 Commits
29ae97f89a
...
cb1800ee9d
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cb1800ee9d |
101
.drone.star
101
.drone.star
@@ -1,5 +1,7 @@
|
|||||||
def main(ctx):
|
def main(ctx):
|
||||||
return [
|
return [
|
||||||
|
notify(ctx),
|
||||||
|
|
||||||
stepPR("amd64", "motsognir"),
|
stepPR("amd64", "motsognir"),
|
||||||
stepPR("arm64", "motsognir"),
|
stepPR("arm64", "motsognir"),
|
||||||
stepMergeMaster("amd64", "motsognir"),
|
stepMergeMaster("amd64", "motsognir"),
|
||||||
@@ -13,8 +15,50 @@ def main(ctx):
|
|||||||
stepMergeMaster("arm64", "webtest"),
|
stepMergeMaster("arm64", "webtest"),
|
||||||
stepBuildWeekly("amd64", "webtest"),
|
stepBuildWeekly("amd64", "webtest"),
|
||||||
stepBuildWeekly("arm64", "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/**",
|
||||||
|
],
|
||||||
|
"status": [
|
||||||
|
"failure",
|
||||||
|
"success",
|
||||||
|
],
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
def stepPR(arch, path):
|
def stepPR(arch, path):
|
||||||
return {
|
return {
|
||||||
@@ -36,25 +80,8 @@ def stepPR(arch, path):
|
|||||||
"tag": "latest-%s" % (arch),
|
"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": {
|
"trigger": {
|
||||||
"ref": [
|
"ref": [
|
||||||
"refs/pull/**",
|
"refs/pull/**",
|
||||||
@@ -92,25 +119,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": [],
|
||||||
"trigger": {
|
"trigger": {
|
||||||
"ref": [
|
"ref": [
|
||||||
"refs/heads/master",
|
"refs/heads/master",
|
||||||
@@ -148,25 +158,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": [],
|
||||||
"trigger": {
|
"trigger": {
|
||||||
"ref": [
|
"ref": [
|
||||||
"refs/heads/master",
|
"refs/heads/master",
|
||||||
|
|||||||
Reference in New Issue
Block a user