1
1
mirror of https://github.com/namibia/openvpn-install.git synced 2024-06-15 17:22:20 +00:00

action: get public IP from doctl

Fix  #737
This commit is contained in:
Stanislas Lange 2020-10-03 19:04:08 +02:00
parent cb23f0ec24
commit 2950fd4457
No known key found for this signature in database
GPG Key ID: 710D9597C7EAD8CF

View File

@ -42,7 +42,7 @@ jobs:
run: sleep 90
- name: Get server IP
run: echo ::set-output name=value::$(doctl compute droplet list -o json | jq -r '.[] | select(.name == "'openvpn-action-$GITHUB_RUN_ID-$GITHUB_RUN_NUMBER-${{ matrix.os-image }}'").networks.v4 | .[0].ip_address')
run: echo ::set-output name=value::$(doctl compute droplet list -o json | jq -r '.[] | select(.name == "'openvpn-action-$GITHUB_RUN_ID-$GITHUB_RUN_NUMBER-${{ matrix.os-image }}'").networks.v4 | .[] | select(.type == "'public'").ip_address')
id: server_ip
- name: Get server OS