From 5420b20f437e5f7fa8ab953fe384050dd267b1bc Mon Sep 17 00:00:00 2001 From: Jacques ROUSSEL Date: Tue, 24 Sep 2024 10:07:13 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8(ci)=20add=20helmfile=20linter?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add a linter to avoid to merge config that breaks argocd sync --- .github/workflows/helmfile-linter.yml | 22 ++++++++++++++++++++++ secrets | 2 +- 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/helmfile-linter.yml diff --git a/.github/workflows/helmfile-linter.yml b/.github/workflows/helmfile-linter.yml new file mode 100644 index 0000000..775efca --- /dev/null +++ b/.github/workflows/helmfile-linter.yml @@ -0,0 +1,22 @@ +name: Helmfile lint +run-name: Helmfile lint + +on: + pull_request: + branches: + - 'main' + +jobs: + helmfile-lint: + runs-on: ubuntu-latest + container: + image: ghcr.io/helmfile/helmfile:latest + steps: + - + uses: numerique-gouv/action-helmfile-lint@main + with: + app-id: ${{ secrets.APP_ID }} + age-key: ${{ secrets.SOPS_PRIVATE }} + private-key: ${{ secrets.PRIVATE_KEY }} + helmfile-src: "src/helm" + repositories: "people,secrets" diff --git a/secrets b/secrets index 2572ba9..7484f21 160000 --- a/secrets +++ b/secrets @@ -1 +1 @@ -Subproject commit 2572ba98d3efbb11c6eb9520ef558443af9638b8 +Subproject commit 7484f212c522d68891ce31197dd7dba62c4be095