diff --git a/hommer-deployment.yml b/hommer-deployment.yml index fe6e3a6..e455cb3 100644 --- a/hommer-deployment.yml +++ b/hommer-deployment.yml @@ -27,7 +27,12 @@ spec: initContainers: - name: git-cloner image: alpine/git:latest - command: ["git", "clone", "https://git.anpham.me/DurianLAB/Homepage-Dashboard.git", "/shared-git-data/Homepage-Dashboard"] + command: + - sh + - -c + - | # <--- This indicates a multi-line string. Indent the lines below it. + rm -rf /shared-git-data/Homepage-Dashboard && \ + git clone https://git.anpham.me/DurianLAB/Homepage-Dashboard.git /shared-git-data/Homepage-Dashboard volumeMounts: - name: git-repo-volume mountPath: /shared-git-data