-
Notifications
You must be signed in to change notification settings - Fork 1
/
.drone.star
42 lines (39 loc) · 953 Bytes
/
.drone.star
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
def main(ctx):
publish = ctx.build.branch == "master"
return [
step("amd64", publish),
step("arm64", publish),
]
def step(arch, publish):
pipeline = {
"kind": "pipeline",
"name": "build-%s" % arch,
"platform": {
"os": "linux",
"arch": arch,
},
"workspace": {
"path": "mono/src",
},
"steps": [
{
"name": "build",
"image": "spritsail/abuild:edge",
"pull": "always",
"privileged": True,
"settings": {
"publickey": "https://alpine.spritsail.io/spritsail-alpine.rsa.pub",
},
"environment": {
"SIGNINGKEY": {
"from_secret": "signingkey",
},
},
},
],
}
if publish:
pipeline["steps"][0]["settings"]["repo_sshfs"] = "drone-upload@web.spritsail.io:"
pipeline["steps"][0]["environment"]["SSHKEY"] = {"from_secret": "sshkey"}
return pipeline
# vim: ft=python sw=2