From 1107534cff08d2a7fa0ff0dbb44d86cac5972701 Mon Sep 17 00:00:00 2001 From: Ludger Sicking Date: Tue, 3 Dec 2024 10:10:24 +0100 Subject: [PATCH] Deployment: Logik bei Pull Requests erproben 002 --- .woodpecker/build_and_copy_blog.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.woodpecker/build_and_copy_blog.yaml b/.woodpecker/build_and_copy_blog.yaml index 931c2c6..67763cd 100644 --- a/.woodpecker/build_and_copy_blog.yaml +++ b/.woodpecker/build_and_copy_blog.yaml @@ -6,6 +6,11 @@ when: on_empty: false steps: + - name: log_start_time + image: alpine + commands: + - date +"%Y-%m-%d_%T_%N" + - name: build_by_hugo image: hugomods/hugo commands: @@ -33,5 +38,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_$(date +"%Y-%m-%d_%T_%N")' \ No newline at end of file + - ssh -i ~/.ssh/deployKey -p $SSH_PORT $SSH_USER@$SSH_HOST 'touch $HOME/time_end_copy_$(date +"%Y-%m-%d_%T_%N")' \ No newline at end of file