build-deploy-game: default PLAYED_PORT to 22 (appleboy did; inline ssh must too)
This commit is contained in:
@@ -139,11 +139,11 @@ jobs:
|
|||||||
chmod 600 /tmp/ssh/key
|
chmod 600 /tmp/ssh/key
|
||||||
cat > /tmp/ssh/run <<EOF
|
cat > /tmp/ssh/run <<EOF
|
||||||
#!/usr/bin/env bash
|
#!/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
|
EOF
|
||||||
cat > /tmp/ssh/put <<EOF
|
cat > /tmp/ssh/put <<EOF
|
||||||
#!/usr/bin/env bash
|
#!/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
|
EOF
|
||||||
chmod +x /tmp/ssh/run /tmp/ssh/put
|
chmod +x /tmp/ssh/run /tmp/ssh/put
|
||||||
|
|
||||||
@@ -300,7 +300,7 @@ jobs:
|
|||||||
chmod 600 /tmp/ssh/key
|
chmod 600 /tmp/ssh/key
|
||||||
cat > /tmp/ssh/run <<EOF
|
cat > /tmp/ssh/run <<EOF
|
||||||
#!/usr/bin/env bash
|
#!/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
|
EOF
|
||||||
chmod +x /tmp/ssh/run
|
chmod +x /tmp/ssh/run
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user