From c10f23da582410ac674e926c310662c15bf5f569 Mon Sep 17 00:00:00 2001 From: Aaron Riedel Date: Sat, 23 Dec 2023 19:36:23 +0100 Subject: [PATCH] remove deploy folder before cloning it --- .drone.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.drone.yml b/.drone.yml index 2966948..0f2a367 100644 --- a/.drone.yml +++ b/.drone.yml @@ -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