Added in Terraform provisioner

This commit is contained in:
2022-03-17 12:09:58 +13:00
parent fb08a64e88
commit dbf1435fd4
2 changed files with 69 additions and 3 deletions

View File

@@ -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'),