fix: resolve YAML parsing error in CI configuration
ci/woodpecker/push/woodpecker Pipeline failed

Problem:
- YAML parser incorrectly interpreted  as map structure
- Caused 'cannot unmarshal' error in pipeline #72

Solution:
- Wrap echo commands with single quotes to prevent YAML parsing issues
- Ensure proper command execution in CI environment
This commit is contained in:
张翔
2026-03-30 13:17:07 +08:00
parent 42d0acfa6c
commit d30ef87ccd
+2 -2
View File
@@ -132,8 +132,8 @@ steps:
- ls -la dist/
- echo "Deploying to production"
- mkdir -p ~/.ssh
- echo "SSH key length: $(echo $SSH_PRIVATE_KEY | wc -c)"
- echo "First 50 chars of SSH key: $(echo $SSH_PRIVATE_KEY | cut -c1-50)"
- 'echo "SSH key length: $(echo $SSH_PRIVATE_KEY | wc -c)"'
- 'echo "First 50 chars of SSH key: $(echo $SSH_PRIVATE_KEY | cut -c1-50)"'
- echo "$SSH_PRIVATE_KEY" > ~/.ssh/id_rsa
- chmod 600 ~/.ssh/id_rsa
- echo "SSH key file created, checking permissions:"