remove deploy folder before cloning it
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Aaron Riedel 2023-12-23 19:36:23 +01:00
parent 37c7cd4046
commit c10f23da58
Signed by: aaron
GPG key ID: 643004654D40D577

View file

@ -8,6 +8,7 @@ steps:
- git clone https://git.ar21.de/yolokube/fail2ban-prometheus-exporter.git . - git clone https://git.ar21.de/yolokube/fail2ban-prometheus-exporter.git .
- cd /deployment-repo - cd /deployment-repo
- git clone https://git.ar21.de/yolokube/fail2ban-exporter-deployment.git . - 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 - cp -rv /source-repo/deploy /deployment-repo/base
- mkdir -p /deployment-repo/deploy - mkdir -p /deployment-repo/deploy
- kustomize build -o /deployment-repo/deploy/fail2ban-exporter.yaml - kustomize build -o /deployment-repo/deploy/fail2ban-exporter.yaml