chore: Attempt interacting w/ Harvester REST API
Some checks failed
build-image / Semantic Release (Dry-run) (push) Successful in 35s
build-image / Build image (push) Failing after 8m55s

This commit is contained in:
2025-07-29 22:14:59 +10:00
parent 547be8b390
commit 6a63e2eda2

View File

@ -106,6 +106,26 @@ jobs:
echo "VM provisioning encountered errors - exiting" echo "VM provisioning encountered errors - exiting"
exit 1 exit 1
fi 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: # semrel:
# name: Semantic Release # name: Semantic Release