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
+12 -4
View File
@@ -112,8 +112,15 @@ jobs:
rm ubuntu-vm/ubuntu-${{ env.UBUNTU_VERSION }}-rke2-v${{ needs.semrel_dryrun.outputs.version }}.img 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" 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 - name: Upload image file
run: | run: |
set -x
REPO_TOKEN=$(curl -fsiSL -X POST \ REPO_TOKEN=$(curl -fsiSL -X POST \
http://nextexplorer.nextexplorer.svc.cluster.local:3000/api/auth/login \ http://nextexplorer.nextexplorer.svc.cluster.local:3000/api/auth/login \
-H "Content-Type: application/json" \ -H "Content-Type: application/json" \
@@ -137,10 +144,11 @@ jobs:
jq -r '.directFileUrl' jq -r '.directFileUrl'
) )
curl -ksS -X POST "https://lab-hv-vip.bessems.lan/v1/harvesterhci.io.virtualmachineimages" \ curl -ksS -X POST \
-H "Authorization: Bearer ${{ secrets.HV_TOKEN }}" \ https://lab-hv-vip.bessems.lan/v1/harvesterhci.io.virtualmachineimages \
-H "Content-Type: application/json" \ --header "Authorization: Bearer ${{ secrets.HV_TOKEN }}" \
-d @- <<EOF --header "Content-Type: application/json" \
-d @- <<EOF
{ {
"type": "harvesterhci.io.virtualmachineimage", "type": "harvesterhci.io.virtualmachineimage",
"metadata": { "metadata": {