From 90c8e1a11d1e07c530ed0e5776aa5ca5644123f8 Mon Sep 17 00:00:00 2001 From: Marius Ghita Date: Mon, 10 Feb 2025 14:36:23 +0200 Subject: [PATCH] feat: conditional helm workflow generation #0000 Helm charts are considered deprecated and to be replaced by a different deployment strategy, however for backwards compatibility on projects where they might still be used, the workflow has been associated with the repo.helm_charts flag. --- tasks/other-dev-generated-files.yaml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/tasks/other-dev-generated-files.yaml b/tasks/other-dev-generated-files.yaml index 7156748..e9fac8c 100644 --- a/tasks/other-dev-generated-files.yaml +++ b/tasks/other-dev-generated-files.yaml @@ -31,13 +31,21 @@ workflow_group: "10" - target: 30-release-and-build.yaml workflow_group: "30" - - target: 40-helm.yaml - workflow_group: "40" - target: 50-security.yaml workflow_group: "50" - target: 90-cleanup.yaml workflow_group: "90" + - name: generate helm charts workflow + when: repo.helm_charts + ansible.builtin.template: + src: "./templates/.github/workflows/40-helm.yaml.j2" + dest: "{{ repo_path + '/.github/workflows/40-helm.yaml' }}" + variable_start_string: '[[' + variable_end_string: ']]' + vars: + workflow_group: "40" + - name: generate .dockerignore ansible.builtin.template: src: ./templates/.dockerignore.j2