From 6a63e2eda2c93b2197001ab7e46dbb9d711d0e90 Mon Sep 17 00:00:00 2001 From: Danny Bessems Date: Tue, 29 Jul 2025 22:14:59 +1000 Subject: [PATCH] chore: Attempt interacting w/ Harvester REST API --- .gitea/workflows/actions.yaml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.gitea/workflows/actions.yaml b/.gitea/workflows/actions.yaml index ef019a4..394b24d 100644 --- a/.gitea/workflows/actions.yaml +++ b/.gitea/workflows/actions.yaml @@ -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 @- <