From da7448d814e400503f01ee386f53270f729fda85 Mon Sep 17 00:00:00 2001 From: Danny Bessems Date: Thu, 17 Sep 2026 21:37:56 +1000 Subject: [PATCH] build: Debug existing resources --- .gitea/workflows/actions.yaml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/actions.yaml b/.gitea/workflows/actions.yaml index 523d542..a928ebd 100644 --- a/.gitea/workflows/actions.yaml +++ b/.gitea/workflows/actions.yaml @@ -112,8 +112,15 @@ jobs: rm ubuntu-vm/ubuntu-${{ env.UBUNTU_VERSION }}-rke2-v${{ needs.semrel_dryrun.outputs.version }}.img echo "image_path=ubuntu-vm/ubuntu-${{ env.UBUNTU_VERSION }}-rke2-v${{ needs.semrel_dryrun.outputs.version }}-compacted.img" | tee -a "$GITHUB_OUTPUT" + - name: Check for existing resources + run: | + curl -fsSL -X GET \ + http://nextexplorer.nextexplorer.svc.cluster.local:3000/api/browse/Storage/Repository/rel/ || true + curl -ksS -X GET \ + https://lab-hv-vip.bessems.lan/v1/harvesterhci.io.virtualmachineimages || true - name: Upload image file run: | + set -x REPO_TOKEN=$(curl -fsiSL -X POST \ http://nextexplorer.nextexplorer.svc.cluster.local:3000/api/auth/login \ -H "Content-Type: application/json" \ @@ -137,10 +144,11 @@ jobs: jq -r '.directFileUrl' ) - curl -ksS -X POST "https://lab-hv-vip.bessems.lan/v1/harvesterhci.io.virtualmachineimages" \ - -H "Authorization: Bearer ${{ secrets.HV_TOKEN }}" \ - -H "Content-Type: application/json" \ - -d @- <