build-deploy-game: default PLAYED_PORT to 22 (appleboy did; inline ssh must too)

This commit is contained in:
played-ci
2026-06-05 02:44:17 +00:00
parent 8dc5812f1b
commit 7f66c21ed9
+3 -3
View File
@@ -139,11 +139,11 @@ jobs:
chmod 600 /tmp/ssh/key
cat > /tmp/ssh/run <<EOF
#!/usr/bin/env bash
exec ssh -i /tmp/ssh/key -o StrictHostKeyChecking=accept-new -o UserKnownHostsFile=/tmp/ssh/known_hosts -o ConnectTimeout=20 -p "${PLAYED_PORT}" "${PLAYED_USER}@${PLAYED_HOST}" "\$@"
exec ssh -i /tmp/ssh/key -o StrictHostKeyChecking=accept-new -o UserKnownHostsFile=/tmp/ssh/known_hosts -o ConnectTimeout=20 -p "${PLAYED_PORT:-22}" "${PLAYED_USER}@${PLAYED_HOST}" "\$@"
EOF
cat > /tmp/ssh/put <<EOF
#!/usr/bin/env bash
exec scp -i /tmp/ssh/key -o StrictHostKeyChecking=accept-new -o UserKnownHostsFile=/tmp/ssh/known_hosts -o ConnectTimeout=20 -P "${PLAYED_PORT}" "\$1" "${PLAYED_USER}@${PLAYED_HOST}:\$2"
exec scp -i /tmp/ssh/key -o StrictHostKeyChecking=accept-new -o UserKnownHostsFile=/tmp/ssh/known_hosts -o ConnectTimeout=20 -P "${PLAYED_PORT:-22}" "\$1" "${PLAYED_USER}@${PLAYED_HOST}:\$2"
EOF
chmod +x /tmp/ssh/run /tmp/ssh/put
@@ -300,7 +300,7 @@ jobs:
chmod 600 /tmp/ssh/key
cat > /tmp/ssh/run <<EOF
#!/usr/bin/env bash
exec ssh -i /tmp/ssh/key -o StrictHostKeyChecking=accept-new -o UserKnownHostsFile=/tmp/ssh/known_hosts -o ConnectTimeout=20 -p "${PLAYED_PORT}" "${PLAYED_USER}@${PLAYED_HOST}" "\$@"
exec ssh -i /tmp/ssh/key -o StrictHostKeyChecking=accept-new -o UserKnownHostsFile=/tmp/ssh/known_hosts -o ConnectTimeout=20 -p "${PLAYED_PORT:-22}" "${PLAYED_USER}@${PLAYED_HOST}" "\$@"
EOF
chmod +x /tmp/ssh/run