From d62cd2de03bfca52c63600a638c0e15757c841ce Mon Sep 17 00:00:00 2001 From: joerglohrer Date: Wed, 30 Oct 2024 05:08:27 +0000 Subject: [PATCH] back to black --- .woodpecker/build-html-copy-to-server.yaml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.woodpecker/build-html-copy-to-server.yaml b/.woodpecker/build-html-copy-to-server.yaml index f5bfa62..67c5ee4 100644 --- a/.woodpecker/build-html-copy-to-server.yaml +++ b/.woodpecker/build-html-copy-to-server.yaml @@ -21,11 +21,7 @@ steps: image: hugomods/hugo commands: - hugo version - - git -C sb submodule update --init --recursive - - hugo --cleanDestinationDir -s sb --logLevel debug --debug # ohne --logFile - # 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 + - hugo --cleanDestinationDir -s sb --logLevel info - name: copy_to_server image: alpine @@ -47,5 +43,6 @@ steps: - chmod 600 ~/.ssh/deployKey - ssh-keyscan -H -p $SSH_PORT $SSH_HOST 2>/dev/null >> ~/.ssh/known_hosts - chmod 600 ~/.ssh/known_hosts + - 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/