constellation/.github/actions/e2e_mini/wait-for-ssh.sh
Fabian Kammel 6564fcbf6c
E2E Test Mini Constellation (#796)
* fix: typo to build amd64 for macos
* Implement E2E test for mini constellation
Signed-off-by: Fabian Kammel <fk@edgeless.systems>
2022-12-14 16:51:42 +01:00

14 lines
293 B
Bash
Executable File

#!/usr/bin/env bash
set +e
echo "Waiting for SSH server to come online..."
# Wait for SSH to come online, at most 10*30s=5min
COUNT=0
until ssh -i id_rsa -o StrictHostKeyChecking=no adminuser@"${AZURE_VM_IP}" date || [ $COUNT -eq 10 ]; do
sleep 30
((COUNT++))
done
echo "Done waiting."