mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-25 03:15:38 +00:00
switch ssh wait with a script
This commit is contained in:
parent
6b5892eb1d
commit
488b5d61fd
12
.github/workflows/arrow.yml
vendored
12
.github/workflows/arrow.yml
vendored
@ -110,10 +110,14 @@ jobs:
|
|||||||
run: terraform output -raw host_ip
|
run: terraform output -raw host_ip
|
||||||
|
|
||||||
- name: Wait on SSH
|
- name: Wait on SSH
|
||||||
uses: iFaxity/wait-on-action@v1.1.0
|
if: inputs.action == 'create'
|
||||||
with:
|
run: |
|
||||||
resource: tcp ${{ steps.host.outputs.stdout }}:22
|
for i in $(seq 1 15); do
|
||||||
interval: 5000
|
if $(nc -z -w 3 ${{ steps.host.outputs.stdout }} 22); then
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
sleep 10
|
||||||
|
done
|
||||||
|
|
||||||
- name: Write Identity Keys to Files
|
- name: Write Identity Keys to Files
|
||||||
if: inputs.action == 'create'
|
if: inputs.action == 'create'
|
||||||
|
Loading…
Reference in New Issue
Block a user