-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.star
34 lines (30 loc) · 965 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
build_images = {
"Debian 9": "debian-9-devtools",
"Debian 10": "debian-10-devtools",
"Debian 11": "debian-11-devtools",
"Ubuntu 18.04": "ubuntu-18.04-devtools",
"Ubuntu 20.04": "ubuntu-20.04-devtools",
"Ubuntu 22.04": "ubuntu-22.04-devtools",
"CentOS 7": "centos-7-devtools",
"CentOS 8": "centos-8-devtools",
"Rocky Linux 8": "rockylinux-8-devtools",
"Rocky Linux 9": "rockylinux-9-devtools",
}
def build_tmio(name, image):
return {
"name": "build on " + name,
"image": image,
"pull": "if-not-exists",
"depends_on": [],
"commands": [
'make',
]
}
def main(ctx):
pipelines = []
for name, image in build_images.items():
pipelines.append({"kind": "pipeline",
"type": "docker",
"name": "Build on " + name,
"steps": [build_tmio(name, image)]})
return pipelines