1
0
Fork 0

ci: wait for cloud-init to finish

master
dump_stack() 2023-05-16 14:26:22 +00:00
parent a49d705846
commit 5de9c50579
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC
1 changed files with 4 additions and 2 deletions

View File

@ -78,8 +78,10 @@ jobs:
sleep 1s
done
ssh root@$IP "apt -o 'DPkg::Lock::Timeout=360' update"
ssh root@$IP "apt -o 'DPkg::Lock::Timeout=360' install -y podman qemu-system-x86"
ssh root@$IP "cloud-init status --wait"
ssh root@$IP "apt-get update"
ssh root@$IP "apt-get install -y podman qemu-system-x86"
ssh root@$IP "useradd --shell /bin/bash user && mkdir -p /home/user/.ssh && cp /root/.ssh/authorized_keys /home/user/.ssh/ && chown -R user:user /home/user"