2022-03-14 14:58:20 +13:00
|
|
|
// Distros to Test on ;)
|
|
|
|
|
local distros = ['centos7',
|
2022-03-14 15:29:51 +13:00
|
|
|
'centos8',
|
2022-03-14 15:34:17 +13:00
|
|
|
'rockylinux8',
|
2022-03-14 14:18:48 +13:00
|
|
|
'debian10',
|
|
|
|
|
'debian11'];
|
|
|
|
|
|
2022-03-14 14:58:20 +13:00
|
|
|
|
2022-03-14 17:05:01 +13:00
|
|
|
local utils = import './.drone/utils.libsonnet';
|
2022-03-14 12:18:38 +13:00
|
|
|
|
2022-03-14 14:58:20 +13:00
|
|
|
local gen_pipeline(distro) =
|
|
|
|
|
{kind: 'pipeline',
|
2022-03-14 14:18:48 +13:00
|
|
|
type: 'docker',
|
|
|
|
|
name: 'Test on %(distro)s' % { distro: distro },
|
|
|
|
|
steps: [
|
2022-03-14 16:24:26 +13:00
|
|
|
utils.test_distro(distro),
|
|
|
|
|
utils.email_notification()],
|
2022-03-14 14:18:48 +13:00
|
|
|
services: [
|
2022-03-14 16:24:26 +13:00
|
|
|
utils.docker_service(),
|
2022-03-14 14:18:48 +13:00
|
|
|
],
|
|
|
|
|
volumes:
|
2022-03-14 14:58:20 +13:00
|
|
|
[{
|
2022-03-14 14:18:48 +13:00
|
|
|
name: 'dockersock',
|
|
|
|
|
temp: {},
|
2022-03-14 14:58:20 +13:00
|
|
|
},],
|
|
|
|
|
};
|
2022-03-14 14:18:48 +13:00
|
|
|
|
2022-03-14 14:58:20 +13:00
|
|
|
// Generate the output
|
2022-03-14 14:18:48 +13:00
|
|
|
[
|
2022-03-14 14:58:20 +13:00
|
|
|
gen_pipeline(distro)
|
|
|
|
|
for distro in distros
|
|
|
|
|
]
|