From 8cef0e8ffd45a918bdba4299cf372ae22e542a7e Mon Sep 17 00:00:00 2001 From: Laurent Al Hossri <139749720+Alhossril@users.noreply.github.com> Date: Sun, 18 May 2025 09:14:29 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20remove=20file=20starting=20by=201=20and?= =?UTF-8?q?=202=20to=20avoid=20copying=201-resman-provid=E2=80=A6=20(#2944?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: remove file starting by 1 and 2 to avoid copying 1-resman-providers.tf, 2-project-factory-providers.tf ... * feat: add schemas to repository files --------- Co-authored-by: Ludovico Magnocavallo --- fast/extras/0-cicd-gitlab/main.tf | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fast/extras/0-cicd-gitlab/main.tf b/fast/extras/0-cicd-gitlab/main.tf index df23cb95a..76326a564 100644 --- a/fast/extras/0-cicd-gitlab/main.tf +++ b/fast/extras/0-cicd-gitlab/main.tf @@ -28,6 +28,8 @@ locals { ] : []), [for f in fileset(path.module, "${v.populate_from}/*.tf") : f], [for f in fileset(path.module, "${v.populate_from}/templates/*.tpl") : f], + [for f in fileset(path.module, "${v.populate_from}/templates/*.yaml") : f], + [for f in fileset(path.module, "${v.populate_from}/schemas/*.json") : f], [for f in fileset(path.module, "${v.populate_from}/terraform.tfvars") : f] ) : { project = k @@ -61,7 +63,7 @@ locals { for k in local._repository_files : "${k.project}/${k.name}" => k if !endswith(k.name, ".tf") || ( - !startswith(k.name, "0") && k.name != "globals.tf" + !startswith(k.name, "0") && !startswith(k.name, "1") && !startswith(k.name, "2") && k.name != "globals.tf" ) }, {