From d8823fd71e3c0aa1f5d73623f17e0935a7a67800 Mon Sep 17 00:00:00 2001 From: Joakim Svensson Date: Fri, 9 May 2025 20:58:15 +0000 Subject: [PATCH] Update .drone.yml --- .drone.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index e5e1a16..ad31ccd 100644 --- a/.drone.yml +++ b/.drone.yml @@ -4,7 +4,7 @@ type: docker name: build clone: - depth: 0 + depth: 0 # Hämta hela historiken steps: - name: build @@ -14,6 +14,10 @@ steps: path: /site commands: - pip install -U -r ./requirements.txt + - echo "Kontrollerar att .git finns" + - ls -la .git || (echo "ERROR: .git saknas" && exit 1) + - echo "Kontrollerar git-historik" + - git log -n 3 docs/index.md || (echo "Ingen historik" && exit 1) - mkdocs build - cp -r site/ /site - chmod -R 777 /site @@ -21,4 +25,4 @@ steps: volumes: - name: site host: - path: /root/sa6anw + path: /root/sa6anw