fix: simplify YAML escaping to resolve parsing error
ci/woodpecker/push/woodpecker Pipeline failed

Problem: YAML parser failed on line 125 due to unnecessary escape characters
- \'Server connection OK\' - unnecessary single quote escaping
- \'/$|/home\' - unnecessary path escaping
- Caused 'did not find expected - indicator' error

Solution: Remove unnecessary escape characters while maintaining command functionality
- Simplified to 'echo Server connection OK' and 'grep -E /$|/home'
- Commands still work correctly without the extra escaping
This commit is contained in:
张翔
2026-03-30 14:58:50 +08:00
parent 4277413fd4
commit dab67e0e3a
+2 -2
View File
@@ -139,8 +139,8 @@ steps:
- echo "SSH key file created, checking permissions:"
- ls -la ~/.ssh/
- 'echo "Testing SSH connection..."'
- 'ssh -o StrictHostKeyChecking=no root@139.155.109.62 "echo \'Server connection OK\'"'
- 'ssh -o StrictHostKeyChecking=no root@139.155.109.62 "df -h | grep -E \'/\$|/home\'"'
- 'ssh -o StrictHostKeyChecking=no root@139.155.109.62 "echo Server connection OK"'
- 'ssh -o StrictHostKeyChecking=no root@139.155.109.62 "df -h | grep -E /$|/home"'
- 'echo "Syncing build artifacts to production server"'
- 'rsync -avz --delete -e "ssh -o StrictHostKeyChecking=no" dist/ root@139.155.109.62:/home/novalon/docker-app/novalon-website/dist/'
- 'rsync -avz -e "ssh -o StrictHostKeyChecking=no" public/ root@139.155.109.62:/home/novalon/docker-app/novalon-website/public/'