build: Revert tmp dir during sparsify
build-image / Semantic Release (Dry-run) (push) Successful in 1m6s
build-image / Build image (push) Failing after 12m36s

This commit is contained in:
2026-09-15 14:32:40 +10:00
parent 4a88c9568a
commit 286e79ddab
+5 -6
View File
@@ -63,8 +63,7 @@ jobs:
run: |
curl -L \
${{ env.UBUNTU_SOURCE_IMAGE }} \
-o ubuntu-vm/ubuntu-${{ env.UBUNTU_VERSION }}-rke2-v${{ needs.semrel_dryrun.outputs.version }}.img \
-u ${{ secrets.REPO_USERNAME }}:${{ secrets.REPO_PASSWORD }}
-o ubuntu-vm/ubuntu-${{ env.UBUNTU_VERSION }}-rke2-v${{ needs.semrel_dryrun.outputs.version }}.img
qemu-img resize ubuntu-vm/ubuntu-${{ env.UBUNTU_VERSION }}-rke2-v${{ needs.semrel_dryrun.outputs.version }}.img +5G
- name: Generate seed ISO
@@ -106,19 +105,19 @@ jobs:
run: |
virt-sparsify --compress \
--check-tmpdir ignore \
--tmp $PWD/ubuntu-vm \
ubuntu-vm/ubuntu-${{ env.UBUNTU_VERSION }}-rke2-v${{ needs.semrel_dryrun.outputs.version }}.img \
ubuntu-vm/ubuntu-${{ env.UBUNTU_VERSION }}-rke2-v${{ needs.semrel_dryrun.outputs.version }}-compacted.img
- name: Upload image file
run: |
REPO_TOKEN=$(curl -fsSL -X POST \
http://filebrowser.filebrowser.svc.cluster.local:80/api/login \
http://nextexplorer.nextexplorer.svc.cluster.local:3000/api/auth/login \
-H "Content-Type: application/json" \
-d '{"username": "admin", "password": "${{ secrets.REPO_PASSWORD }}"}' \
-d '{"email": "${{ secrets.REPO_USERNAME }}", "password": "${{ secrets.REPO_PASSWORD }}"}' | \
grep -oP 'connect\.sid=[^;]+' | head -n 1
)
curl -fsSL -X POST \
http://filebrowser.filebrowser.svc.cluster.local:80/api/resources/rel/ubuntu-${{ env.UBUNTU_VERSION }}-rke2-v${{ needs.semrel_dryrun.outputs.version }}.img?override=true \
--header "X-Auth: $REPO_TOKEN" \
--header "Cookie: $REPO_TOKEN" \
--upload-file "ubuntu-vm/ubuntu-${{ env.UBUNTU_VERSION }}-rke2-v${{ needs.semrel_dryrun.outputs.version }}-compacted.img"
curl -ksS -X PUT "https://lab-hv-vip.bessems.lan/v1/harvesterhci.io.virtualmachineimages" \