You've already forked ansible-role-common
Update JSONNET
This commit is contained in:
@@ -1,3 +1,7 @@
|
|||||||
|
local distros = ['centos7',
|
||||||
|
'debian10',
|
||||||
|
'debian11'];
|
||||||
|
|
||||||
local docker_service() =
|
local docker_service() =
|
||||||
{
|
{
|
||||||
name: 'docker',
|
name: 'docker',
|
||||||
@@ -6,6 +10,12 @@ local docker_service() =
|
|||||||
volumes: { name: 'dockersock', path: '/var/run' },
|
volumes: { name: 'dockersock', path: '/var/run' },
|
||||||
};
|
};
|
||||||
|
|
||||||
|
local pipeline(distribution) = {
|
||||||
|
kind: "pipeline",
|
||||||
|
type: "docker",
|
||||||
|
name: "%(distribution)" % { distribution: distribution }
|
||||||
|
};
|
||||||
|
|
||||||
local email_notification() =
|
local email_notification() =
|
||||||
{
|
{
|
||||||
name: 'notify by email',
|
name: 'notify by email',
|
||||||
@@ -39,8 +49,10 @@ local test_distro(distribution) =
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
// Run the steps
|
local gen_pipeline() =
|
||||||
{
|
[{kind: 'pipeline',
|
||||||
|
type: 'docker',
|
||||||
|
name: 'Test on %(distro)s' % { distro: distro },
|
||||||
steps: [
|
steps: [
|
||||||
[test_distro('centos7'),
|
[test_distro('centos7'),
|
||||||
email_notification()],
|
email_notification()],
|
||||||
@@ -51,5 +63,15 @@ local test_distro(distribution) =
|
|||||||
],
|
],
|
||||||
services: [
|
services: [
|
||||||
docker_service(),
|
docker_service(),
|
||||||
]
|
],
|
||||||
}
|
volumes:
|
||||||
|
{
|
||||||
|
name: 'dockersock',
|
||||||
|
temp: {},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
for distro in distros];
|
||||||
|
|
||||||
|
[
|
||||||
|
gen_pipeline(),
|
||||||
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user