Skip to content

Commit 336252f

Browse files
committed
wip: Add initial support for creating instance
1 parent 4cd3d48 commit 336252f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/create-instance.yml

+9
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,15 @@ jobs:
1515
steps:
1616
- run: |
1717
echo Creating instance associated with issue $NUMBER
18+
source ~/app-cred-morpho-cloud-portal_github-runner-openrc.sh > /dev/null 2>&1
19+
source ~/venv/bin/activate
20+
openstack server create "morpho-cloud-portal_instance-$NUMBER" \
21+
--nic net-id="auto_allocated_network" \
22+
--security-group "default" \
23+
--flavor g3.large \
24+
--image "Featured-Ubuntu22" \
25+
--wait
26+
openstack console log show "morpho-cloud-portal_instance-$NUMBER"
1827
env:
1928
NUMBER: ${{ github.event.issue.number }}
2029

0 commit comments

Comments
 (0)