doedel43
All checks were successful
ci/woodpecker/push/build_and_copy_website Pipeline was successful

This commit is contained in:
Ludger Sicking 2025-05-26 11:51:22 +02:00
parent 49e585d417
commit 06dd471822
2 changed files with 4 additions and 0 deletions

View file

@ -84,6 +84,8 @@ steps:
- 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 "touch $DOMAIN_FOLDER/Log/time_begin_copy_$(date +'%Y-%m-%d_%T')"
- ssh -i ~/.ssh/deployKey -p $SSH_PORT $SSH_USER@$SSH_HOST "rm -rf $DOMAIN_FOLDER/www-backup"
- ssh -i ~/.ssh/deployKey -p $SSH_PORT $SSH_USER@$SSH_HOST "cp -a $DOMAIN_FOLDER/$TARGET_PATH $DOMAIN_FOLDER/www-backup"
#- scp -r -i ~/.ssh/deployKey -P $SSH_PORT Website/PROD/canva/* $SSH_USER@$SSH_HOST:$DOMAIN_FOLDER/$TARGET_PATH/
- scp -r -i ~/.ssh/deployKey -P $SSH_PORT Website/PROD/* $SSH_USER@$SSH_HOST:$DOMAIN_FOLDER/$TARGET_PATH/
- ssh -i ~/.ssh/deployKey -p $SSH_PORT $SSH_USER@$SSH_HOST "touch $DOMAIN_FOLDER/Log/time_end_copy_$(date +'%Y-%m-%d_%T')"