Deployment: Logik bei Pull Requests erproben 010

This commit is contained in:
Ludger Sicking 2024-12-03 10:44:10 +01:00
parent 386e3a92aa
commit 061f6fef5c
3 changed files with 5 additions and 13 deletions

View file

@ -28,6 +28,8 @@ steps:
from_secret: ssh_key
SSH_PORT:
from_secret: ssh_port
DOMAIN_FOLDER:
from_secret: domain_folder
TARGET_PATH:
from_secret: target_path
@ -38,6 +40,6 @@ steps:
- chmod 600 ~/.ssh/deployKey
- 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 $HOME/time_begin_copy_$(date +"%Y-%m-%d_%T_%N")'
- scp -r -i ~/.ssh/deployKey -P $SSH_PORT sb/public/* $SSH_USER@$SSH_HOST:$TARGET_PATH/
- ssh -i ~/.ssh/deployKey -p $SSH_PORT $SSH_USER@$SSH_HOST 'touch $HOME/time_end_copy_$(date +"%Y-%m-%d_%T_%N")'
- ssh -i ~/.ssh/deployKey -p $SSH_PORT $SSH_USER@$SSH_HOST 'touch $DOMAIN_FOLDER/log/time_begin_copy_$(date +"%Y-%m-%d_%T_%N")'
- scp -r -i ~/.ssh/deployKey -P $SSH_PORT sb/public/* $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_%N")'