Skip to content

Commit dceeecb

Browse files
committed
Wait till we detect an ipv4 on droplet
1 parent d905543 commit dceeecb

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.github/scripts/extract_droplet_ipv4.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,6 @@
1111
droplet_info = json.load(sys.stdin)
1212
print(droplet_info[0]["networks"]["v4"][0]["ip_address"])
1313
except Exception:
14-
print(droplet_info)
14+
print("Failed to find ipv4:", file=sys.stderr)
15+
print(json.dumps(droplet_info, indent=4), file=sys.stderr)
1516
raise

.github/workflows/build-deb-package.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@ jobs:
179179

180180
- name: Get droplet ip and export it in env
181181
run: |
182+
until ${doctl compute droplet get aleph-vm-ci-${{ matrix.os_config.alias }}-${{ matrix.check_vm.alias }} --output json | ./.github/scripts/extract_droplet_ipv4.py)}; do sleep 1; done
182183
echo "DROPLET_IPV4=$(doctl compute droplet get aleph-vm-ci-${{ matrix.os_config.alias }}-${{ matrix.check_vm.alias }} --output json | ./.github/scripts/extract_droplet_ipv4.py)" >> "$GITHUB_ENV"
183184
184185
- name: Wait for the system to setup and boot

0 commit comments

Comments
 (0)