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