diff --git a/.drone.yml b/.drone.yml index be3d758..5fde345 100644 --- a/.drone.yml +++ b/.drone.yml @@ -26,9 +26,9 @@ steps: - 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 + - scp install-arch.sh root@"$IP":/root/install-arch.sh - 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 - ./hcloud server reset $SERVER_ID - ./hcloud ssh-key delete drone