build: Revert tmp dir during sparsify
This commit is contained in:
@@ -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" \
|
||||
|
||||
Reference in New Issue
Block a user