chore: Attempt interacting w/ Harvester REST API
This commit is contained in:
@ -106,6 +106,26 @@ jobs:
|
||||
echo "VM provisioning encountered errors - exiting"
|
||||
exit 1
|
||||
fi
|
||||
- name: Upload template
|
||||
run: |
|
||||
curl -sS -X POST "https://lab-hv-vip.bessems.lan/v1/harvesterhci.io.virtualmachinetemplates" \
|
||||
-H "Authorization: Bearer ${{ secrets.HV_TOKEN }}" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d @- <<EOF
|
||||
{
|
||||
"type": "harvesterhci.io.virtualmachineimage",
|
||||
"metadata": {
|
||||
"name": "ubuntu_rke2_${{ needs.semrel_dryrun.outputs.version }}",
|
||||
"namespace": "default"
|
||||
},
|
||||
"spec": {
|
||||
"displayName": "ubuntu_rke2_${{ needs.semrel_dryrun.outputs.version }}",
|
||||
"sourceType": "upload"
|
||||
}
|
||||
}
|
||||
EOF
|
||||
|
||||
sleep 7200
|
||||
|
||||
# semrel:
|
||||
# name: Semantic Release
|
||||
|
Reference in New Issue
Block a user