diff --git a/argocd/templates/apps.yaml b/argocd/templates/apps.yaml index fe6f094..10c0bb4 100644 --- a/argocd/templates/apps.yaml +++ b/argocd/templates/apps.yaml @@ -18,6 +18,14 @@ spec: repoURL: https://gitea.arcodange.lab/{{ $org }}/{{ $app_name }} targetRevision: HEAD path: chart + {{- if eq $org "arcodange" }} + usernameSecret: + name: gitea-credentials + key: username + passwordSecret: + name: gitea-credentials + key: password + {{- end }} destination: server: https://kubernetes.default.svc namespace: {{ $app_name }} @@ -56,6 +64,14 @@ spec: repoURL: https://gitea.arcodange.lab/{{ $org }}/{{ $app_name }} targetRevision: HEAD path: chart + {{- if eq $org "arcodange" }} + usernameSecret: + name: gitea-credentials + key: username + passwordSecret: + name: gitea-credentials + key: password + {{- end }} helm: valueFiles: - values.yaml @@ -74,4 +90,4 @@ spec: syncOptions: - CreateNamespace=true {{- end }} -{{ end }} \ No newline at end of file +{{ end }}