build: Debug existing resources
build-image / Semantic Release (Dry-run) (push) Successful in 27s
build-image / Build image (push) Successful in 13m14s

This commit is contained in:
2026-09-17 21:37:56 +10:00
parent 7f612f8233
commit da7448d814
+11 -3
View File
@@ -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,9 +144,10 @@ 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" \
curl -ksS -X POST \
https://lab-hv-vip.bessems.lan/v1/harvesterhci.io.virtualmachineimages \
--header "Authorization: Bearer ${{ secrets.HV_TOKEN }}" \
--header "Content-Type: application/json" \
-d @- <<EOF
{
"type": "harvesterhci.io.virtualmachineimage",