das ist doch kaputt
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone Build is failing

This commit is contained in:
Patrick Michl 2022-02-20 23:19:45 +01:00
parent e93e93ab41
commit 4f72982cd5

View File

@ -26,9 +26,9 @@ steps:
- IP="$(./hcloud server ip "$SERVER_ID")" - IP="$(./hcloud server ip "$SERVER_ID")"
- until ping -c 1 "$IP"; do sleep 5; done - until ping -c 1 "$IP"; do sleep 5; done
- until ssh-keyscan "$IP" > /root/.ssh/known_hosts; do sleep 5; done - until ssh-keyscan "$IP" > /root/.ssh/known_hosts; do sleep 5; done
- scp install-arch.sh root@${IP}:/root/install-arch.sh - scp install-arch.sh root@"$IP":/root/install-arch.sh
- echo "$SSH_PUBKEY" > authorized_keys - echo "$SSH_PUBKEY" > authorized_keys
- scp authorized_keys root@${IP}:/root/authorized_keys - scp authorized_keys root@"$IP":/root/authorized_keys
- ssh root@$IP /root/install-arch.sh - ssh root@$IP /root/install-arch.sh
- ./hcloud server reset $SERVER_ID - ./hcloud server reset $SERVER_ID
- ./hcloud ssh-key delete drone - ./hcloud ssh-key delete drone