From 2e75a9e5053db42c2ed1f6d7ff5ece08e01705a7 Mon Sep 17 00:00:00 2001 From: Aaron Guise Date: Tue, 15 Mar 2022 14:04:31 +1300 Subject: [PATCH] Fan out/in --- .drone.jsonnet | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/.drone.jsonnet b/.drone.jsonnet index c6cf535..49f391c 100644 --- a/.drone.jsonnet +++ b/.drone.jsonnet @@ -47,8 +47,8 @@ local test_distro(distribution) = }, }; -local gen_pipeline() = - [{kind: 'pipeline', +local gen_pipeline(distro) = + {kind: 'pipeline', type: 'docker', name: 'Test on %(distro)s' % { distro: distro }, steps: @@ -61,15 +61,20 @@ local gen_pipeline() = temp: {}, }, ], - } - for distro in distros]; + }; // Generate the output [ + gen_pipeline('centos7'), + gen_pipeline('centos8'), + gen_pipeline('rockylinux8'), + gen_pipeline('debian10'), + gen_pipeline('debian11'), {kind: 'pipeline', name: 'Send notification by email', steps: email_notification(), - depends_on: distros - }, - gen_pipeline() + depends_on: + ['Test on %(distro)s' % { distro: distro } + for distro in distros] + } ] \ No newline at end of file