From 02360a8982379100c9705a72b1f2f18a64b0c84b Mon Sep 17 00:00:00 2001 From: joerglohrer Date: Wed, 30 Oct 2024 04:45:47 +0000 Subject: [PATCH] protokolliertes deployment --- .woodpecker/build-html-copy-to-server.yaml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.woodpecker/build-html-copy-to-server.yaml b/.woodpecker/build-html-copy-to-server.yaml index 3f80b14..4cd644d 100644 --- a/.woodpecker/build-html-copy-to-server.yaml +++ b/.woodpecker/build-html-copy-to-server.yaml @@ -22,7 +22,11 @@ steps: commands: - hugo version - git -C sb submodule update --init --recursive - - hugo --cleanDestinationDir -s sb --logLevel info + - hugo --cleanDestinationDir -s sb --logLevel debug --debug --logFile hugo_build.log + - cat hugo_build.log # zeigt das vollständige Hugo-Log im CI-Protokoll + # Installiere das `tree`-Tool, um die Struktur von `sb/public` anzuzeigen + - apk add --no-cache tree + - tree sb/public # zeigt die Dateistruktur der Ausgabe an - name: copy_to_server image: alpine @@ -44,6 +48,7 @@ steps: - chmod 600 ~/.ssh/deployKey - ssh-keyscan -H -p $SSH_PORT $SSH_HOST 2>/dev/null >> ~/.ssh/known_hosts - chmod 600 ~/.ssh/known_hosts - + # TARGET_PATH protokollieren + - echo "Target Path for Deployment: $TARGET_PATH" - ssh -i ~/.ssh/deployKey -p $SSH_PORT $SSH_USER@$SSH_HOST "mkdir -p $TARGET_PATH" - scp -r -i ~/.ssh/deployKey -P $SSH_PORT sb/public/* $SSH_USER@$SSH_HOST:$TARGET_PATH/