diff --git a/.woodpecker/deploy.yml b/.woodpecker/deploy.yml index 9fd2a81..0c5088f 100644 --- a/.woodpecker/deploy.yml +++ b/.woodpecker/deploy.yml @@ -17,8 +17,7 @@ steps: - RSYNC_SSHKEY - RSYNC_TARGET_SERVER - RSYNC_TARGET_USER - environment: - - TARGET_PATH=/webroot/adora.codes + - RSYNC_TARGET_PATH when: - event: push branch: main @@ -28,7 +27,7 @@ steps: - 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 + - rsync -avh --delete ./public/ $RSYNC_TARGET_USER@$RSYNC_TARGET_SERVER:$RSYNC_TARGET_PATH