File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed
Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change 3333 env :
3434 NUMBER : ${{ github.event.issue.number }}
3535
36+ - name : Create floating IP
37+ id : ip_create
38+ run : |
39+ source ~/app-cred-morpho-cloud-portal_github-runner-openrc.sh > /dev/null 2>&1
40+ source ~/venv/bin/activate
41+
42+ json_output=$(openstack floating ip create public -f json)
43+ echo $json_output
44+
45+ floating_ip_address=$(
46+ echo $json_output |
47+ jq -r ".floating_ip_address"
48+ )
49+ echo "floating_ip_address [$floating_ip_address]"
50+ echo "floating_ip_address=$floating_ip_address" >> $GITHUB_OUTPUT
51+
52+ - name : Associate floating IP with created instance
53+ run : |
54+ source ~/app-cred-morpho-cloud-portal_github-runner-openrc.sh > /dev/null 2>&1
55+ source ~/venv/bin/activate
56+
57+ openstack server add floating ip "$INSTANCE_NAME" $IP_ADDRESS
58+ env :
59+ IP_ADDRESS : ${{ steps.ip_create.outputs.floating_ip_address }}
60+ INSTANCE_NAME : ${{ steps.instance_create.outputs.instance_name }}
61+
3662 - name : Issue Forms Body Parser
3763 id : parse
3864
You can’t perform that action at this time.
0 commit comments