fix hcloud call
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:08:11 +01:00
parent 25d14a25c2
commit b2799fef2b

View File

@ -22,7 +22,7 @@ steps:
- ./hcloud ssh-key create --name drone --public-key-from-file /root/.ssh/id_ed25519.pub
- ./hcloud server enable-rescue $SERVER_ID --ssh-key drone
- ./hcloud server reset $SERVER_ID
- IP="$(hcloud server ip "$SERVER_ID")"
- IP="$(./hcloud server ip "$SERVER_ID")"
- until ping -c 1 "$IP"; 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"