You've already forked ansible-role-common
Added in Terraform provisioner
This commit is contained in:
@@ -5,7 +5,6 @@ local distros = ['centos7',
|
||||
'debian10',
|
||||
'debian11'];
|
||||
|
||||
|
||||
/* Configuration of DIND */
|
||||
local docker_service() =
|
||||
{
|
||||
@@ -49,6 +48,7 @@ local test_distro(distribution) =
|
||||
local gen_pipeline(distro) =
|
||||
{kind: 'pipeline',
|
||||
type: 'docker',
|
||||
node: {linodrone: true},
|
||||
name: 'Test on %(distro)s' % { distro: distro },
|
||||
steps:
|
||||
[test_distro(distro)],
|
||||
@@ -58,12 +58,25 @@ local gen_pipeline(distro) =
|
||||
[{
|
||||
name: 'dockersock',
|
||||
temp: {},
|
||||
},
|
||||
],
|
||||
},],
|
||||
depends_on:
|
||||
['runners']
|
||||
};
|
||||
|
||||
// Generate the output
|
||||
[
|
||||
{kind: 'pipeline',
|
||||
type: 'docker',
|
||||
name: 'runners',
|
||||
steps:
|
||||
[{name: 'Provision with terraform',
|
||||
image: 'hashicorp/terraform:1.1.7',
|
||||
commands: ['cd terraform',
|
||||
'terraform init',
|
||||
'terraform plan',
|
||||
'terraform apply -auto-approve',
|
||||
]},]
|
||||
},
|
||||
gen_pipeline('centos7'),
|
||||
gen_pipeline('centos8'),
|
||||
gen_pipeline('rockylinux8'),
|
||||
|
||||
Reference in New Issue
Block a user