zum Testen auf Server kopieren
Some checks failed
ci/woodpecker/push/build_and_copy_blog Pipeline failed
Some checks failed
ci/woodpecker/push/build_and_copy_blog Pipeline failed
This commit is contained in:
parent
ec22833ac0
commit
23bef972d6
|
@ -16,6 +16,7 @@ steps:
|
||||||
image: hugomods/hugo
|
image: hugomods/hugo
|
||||||
commands:
|
commands:
|
||||||
- hugo version
|
- hugo version
|
||||||
|
- git -C sb/themes/ submodule update --remote --merge --recursive
|
||||||
- hugo --cleanDestinationDir -s sb --logLevel info
|
- hugo --cleanDestinationDir -s sb --logLevel info
|
||||||
|
|
||||||
- name: copy_to_server
|
- name: copy_to_server
|
||||||
|
@ -48,3 +49,6 @@ steps:
|
||||||
- SSH_COMMAND="touch $BLOG_FOLDER/touchdown-txt_dot-log"
|
- 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 $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'
|
||||||
|
- 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/
|
||||||
|
|
Loading…
Reference in a new issue