(ci) add helmfile linter and fix issue in argocd sync

Add a github job to run helmfile linter on PR
Add argocd annotation to fix job syncing issue
This commit is contained in:
Jacques ROUSSEL
2024-09-24 12:05:54 +02:00
committed by Anthony LC
parent 450790366d
commit 2775a74bdb
4 changed files with 27 additions and 3 deletions

22
.github/workflows/helmfile-linter.yaml vendored Normal file
View File

@@ -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: "impress,secrets"