zum Testen auf Server kopieren
Some checks failed
ci/woodpecker/push/build_and_copy_blog Pipeline failed

This commit is contained in:
Ludger Sicking 2024-11-04 14:45:19 +01:00
parent ec22833ac0
commit 23bef972d6

View file

@ -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/