From 23bef972d672215e32c884f0981905790a842587 Mon Sep 17 00:00:00 2001 From: Ludger Sicking Date: Mon, 4 Nov 2024 14:45:19 +0100 Subject: [PATCH] zum Testen auf Server kopieren --- .woodpecker/build_and_copy_blog.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.woodpecker/build_and_copy_blog.yaml b/.woodpecker/build_and_copy_blog.yaml index a8ca3e1..53eec75 100644 --- a/.woodpecker/build_and_copy_blog.yaml +++ b/.woodpecker/build_and_copy_blog.yaml @@ -16,6 +16,7 @@ steps: image: hugomods/hugo commands: - hugo version + - git -C sb/themes/ submodule update --remote --merge --recursive - hugo --cleanDestinationDir -s sb --logLevel info - name: copy_to_server @@ -48,3 +49,6 @@ steps: - SSH_COMMAND="touch $BLOG_FOLDER/touchdown-txt_dot-log" - ssh -i ~/.ssh/deployKey -p $SSH_PORT $SSH_USER@$SSH_HOST $SSH_COMMAND - ssh -i ~/.ssh/deployKey -p $SSH_PORT $SSH_USER@$SSH_HOST 'ls -la' + - ssh -i ~/.ssh/deployKey -p $SSH_PORT $SSH_USER@$SSH_HOST 'ls -la $BLOG_FOLDER' + + - scp -r -i ~/.ssh/deployKey -P $SSH_PORT sb/public/* $SSH_USER@$SSH_HOST:$BLOG_FOLDER/