You've already forked ansible-role-common
32 lines
621 B
Jsonnet
32 lines
621 B
Jsonnet
// Distros to Test on ;)
|
|
local distros = ['centos7',
|
|
'centos8',
|
|
'rockylinux8',
|
|
'debian10',
|
|
'debian11'];
|
|
|
|
|
|
local utils = import './.drone/utils.libsonnet';
|
|
|
|
local gen_pipeline(distro) =
|
|
{kind: 'pipeline',
|
|
type: 'docker',
|
|
name: 'Test on %(distro)s' % { distro: distro },
|
|
steps: [
|
|
utils.test_distro(distro),
|
|
utils.email_notification()],
|
|
services: [
|
|
utils.docker_service(),
|
|
],
|
|
volumes:
|
|
[{
|
|
name: 'dockersock',
|
|
temp: {},
|
|
},],
|
|
};
|
|
|
|
// Generate the output
|
|
[
|
|
gen_pipeline(distro)
|
|
for distro in distros
|
|
] |