From e3ea40da8a7f6d5e3e521141b589be8a5128f614 Mon Sep 17 00:00:00 2001 From: Ludger Sicking Date: Mon, 4 Nov 2024 15:15:25 +0100 Subject: [PATCH] ich will zum Testen gar nicht kopieren --- .woodpecker/build_and_copy_blog.yaml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.woodpecker/build_and_copy_blog.yaml b/.woodpecker/build_and_copy_blog.yaml index 38d32ee..e201798 100644 --- a/.woodpecker/build_and_copy_blog.yaml +++ b/.woodpecker/build_and_copy_blog.yaml @@ -49,6 +49,11 @@ 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' + - ssh -i ~/.ssh/deployKey -p $SSH_PORT $SSH_USER@$SSH_HOST "ls -la $BLOG_FOLDER" + + - SSH_COMMAND="mkdir -p "$BLOG_FOLDER/_unter_ordner; touch $BLOG_FOLDER/_unter_ordner/_eine_datei" + - ssh -i ~/.ssh/deployKey -p $SSH_PORT $SSH_USER@$SSH_HOST $SSH_COMMAND + + - SSH_COMMAND="rmdir -p "$BLOG_FOLDER/_unter_ordner" + - ssh -i ~/.ssh/deployKey -p $SSH_PORT $SSH_USER@$SSH_HOST $SSH_COMMAND - - scp -r -i ~/.ssh/deployKey -P $SSH_PORT sb/public/* $SSH_USER@$SSH_HOST:$BLOG_FOLDER/