build: Revert tmp dir during sparsify
This commit is contained in:
@@ -63,8 +63,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
curl -L \
|
curl -L \
|
||||||
${{ env.UBUNTU_SOURCE_IMAGE }} \
|
${{ env.UBUNTU_SOURCE_IMAGE }} \
|
||||||
-o ubuntu-vm/ubuntu-${{ env.UBUNTU_VERSION }}-rke2-v${{ needs.semrel_dryrun.outputs.version }}.img \
|
-o ubuntu-vm/ubuntu-${{ env.UBUNTU_VERSION }}-rke2-v${{ needs.semrel_dryrun.outputs.version }}.img
|
||||||
-u ${{ secrets.REPO_USERNAME }}:${{ secrets.REPO_PASSWORD }}
|
|
||||||
|
|
||||||
qemu-img resize ubuntu-vm/ubuntu-${{ env.UBUNTU_VERSION }}-rke2-v${{ needs.semrel_dryrun.outputs.version }}.img +5G
|
qemu-img resize ubuntu-vm/ubuntu-${{ env.UBUNTU_VERSION }}-rke2-v${{ needs.semrel_dryrun.outputs.version }}.img +5G
|
||||||
- name: Generate seed ISO
|
- name: Generate seed ISO
|
||||||
@@ -106,19 +105,19 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
virt-sparsify --compress \
|
virt-sparsify --compress \
|
||||||
--check-tmpdir ignore \
|
--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 }}.img \
|
||||||
ubuntu-vm/ubuntu-${{ env.UBUNTU_VERSION }}-rke2-v${{ needs.semrel_dryrun.outputs.version }}-compacted.img
|
ubuntu-vm/ubuntu-${{ env.UBUNTU_VERSION }}-rke2-v${{ needs.semrel_dryrun.outputs.version }}-compacted.img
|
||||||
- name: Upload image file
|
- name: Upload image file
|
||||||
run: |
|
run: |
|
||||||
REPO_TOKEN=$(curl -fsSL -X POST \
|
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" \
|
-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 \
|
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 \
|
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"
|
--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" \
|
curl -ksS -X PUT "https://lab-hv-vip.bessems.lan/v1/harvesterhci.io.virtualmachineimages" \
|
||||||
|
|||||||
Reference in New Issue
Block a user