From 422f7436f6125b7039ece8152040566f6129bbb6 Mon Sep 17 00:00:00 2001 From: Adora Laura Kalb Date: Fri, 12 Jul 2024 12:49:57 +0200 Subject: [PATCH] update CI --- .woodpecker/deploy-rsync.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.woodpecker/deploy-rsync.yml b/.woodpecker/deploy-rsync.yml index 4972893..e49a82a 100644 --- a/.woodpecker/deploy-rsync.yml +++ b/.woodpecker/deploy-rsync.yml @@ -19,6 +19,7 @@ steps: - RSYNC_TARGET_USER environment: - TARGET_PATH=/webroot/certwarden-deploy.adora.codes + - RSYNC_TARGET_PORT=2003 when: - event: push branch: main @@ -27,5 +28,5 @@ steps: - mkdir -p $HOME/.ssh - echo "$RSYNC_SSHKEY" > $HOME/.ssh/id_ed25519 - chmod 0600 $HOME/.ssh/id_ed25519 - - ssh-keyscan -t ed25519 $RSYNC_TARGET_SERVER >> $HOME/.ssh/known_hosts - - rsync -avh --delete ./public/ $RSYNC_TARGET_USER@$RSYNC_TARGET_SERVER:$TARGET_PATH + - ssh-keyscan -t ed25519 -p $RSYNC_TARGET_PORT $RSYNC_TARGET_SERVER >> $HOME/.ssh/known_hosts + - rsync -avh --port=$RSYNC_TARGET_PORT --delete ./public/ $RSYNC_TARGET_USER@$RSYNC_TARGET_SERVER:$TARGET_PATH