Compare commits

...

2 commits

Author SHA1 Message Date
c10f23da58
remove deploy folder before cloning it
All checks were successful
continuous-integration/drone/push Build is passing
2023-12-23 19:36:23 +01:00
37c7cd4046
add argo app 2023-12-23 19:35:35 +01:00
2 changed files with 21 additions and 0 deletions

View file

@ -8,6 +8,7 @@ steps:
- git clone https://git.ar21.de/yolokube/fail2ban-prometheus-exporter.git .
- cd /deployment-repo
- git clone https://git.ar21.de/yolokube/fail2ban-exporter-deployment.git .
- rm -r /deployment-repo/deploy/* || true
- cp -rv /source-repo/deploy /deployment-repo/base
- mkdir -p /deployment-repo/deploy
- kustomize build -o /deployment-repo/deploy/fail2ban-exporter.yaml

View file

@ -0,0 +1,20 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: fail2ban-prometheus
namespace: argocd
spec:
project: default
source:
repoURL: https://git.ar21.de/yolokube/fail2ban-exporter-deployment.git
targetRevision: HEAD
path: deploy
destination:
server: https://kubernetes.default.svc
namespace: fail2ban-prometheus
syncPolicy:
syncOptions:
- CreateNamespace=true
automated:
selfHeal: false
prune: true