build: Debug existing resources
This commit is contained in:
@@ -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 @- <<EOF
|
||||
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",
|
||||
"metadata": {
|
||||
|
||||
Reference in New Issue
Block a user