This commit is contained in:
gxl 2026-06-03 08:57:06 +08:00
parent 44c0039962
commit 75e67ce4e6
1 changed files with 4 additions and 2 deletions

View File

@ -46,9 +46,11 @@ steps:
from_secret: 136_ssh_password
port: 22
command_timeout: 10m
# 👇 核心黑魔法:利用 SSH 远程执行本地的脚本文件
script:
- bash -s < ./deploy.sh
- |
cat << 'EOF' | bash
$(cat ./deploy.sh)
EOF
when:
event: push
branch: master