✨(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:
committed by
Anthony LC
parent
450790366d
commit
2775a74bdb
22
.github/workflows/helmfile-linter.yaml
vendored
Normal file
22
.github/workflows/helmfile-linter.yaml
vendored
Normal 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"
|
||||||
2
secrets
2
secrets
Submodule secrets updated: 2643697e5f...38594182e8
@@ -6,8 +6,9 @@ kind: Job
|
|||||||
metadata:
|
metadata:
|
||||||
name: {{ $fullName }}-migrate
|
name: {{ $fullName }}-migrate
|
||||||
namespace: {{ .Release.Namespace | quote }}
|
namespace: {{ .Release.Namespace | quote }}
|
||||||
{{- with .Values.backend.migrateJobAnnotations }}
|
|
||||||
annotations:
|
annotations:
|
||||||
|
argocd.argoproj.io/sync-options: Replace=true,Force=true
|
||||||
|
{{- with .Values.backend.migrateJobAnnotations }}
|
||||||
{{- toYaml . | nindent 4 }}
|
{{- toYaml . | nindent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
labels:
|
labels:
|
||||||
|
|||||||
@@ -6,8 +6,9 @@ kind: Job
|
|||||||
metadata:
|
metadata:
|
||||||
name: {{ $fullName }}-createsuperuser
|
name: {{ $fullName }}-createsuperuser
|
||||||
namespace: {{ .Release.Namespace | quote }}
|
namespace: {{ .Release.Namespace | quote }}
|
||||||
{{- with .Values.backend.migrateJobAnnotations }}
|
|
||||||
annotations:
|
annotations:
|
||||||
|
argocd.argoproj.io/sync-options: Replace=true,Force=true
|
||||||
|
{{- with .Values.backend.migrateJobAnnotations }}
|
||||||
{{- toYaml . | nindent 4 }}
|
{{- toYaml . | nindent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
labels:
|
labels:
|
||||||
|
|||||||
Reference in New Issue
Block a user