diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index bed4240..4bbdfd0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -43,13 +43,13 @@ jobs: asset_path: ./alpine.qcow2 asset_name: alpine.qcow2 asset_content_type: application/octet-stream - - name: Upload dummy.qcow2 - id: upload_dummy + - name: Upload snapshot.qcow2 + id: upload_snapshot uses: actions/upload-release-asset@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./dummy.qcow2 - asset_name: dummy.qcow2 + asset_path: ./snapshot.qcow2 + asset_name: snapshot.qcow2 asset_content_type: application/octet-stream diff --git a/snapshot.sh b/snapshot.sh index 8d47434..bcd6b08 100755 --- a/snapshot.sh +++ b/snapshot.sh @@ -1,9 +1,9 @@ #!/bin/sh -rm -f dummy.qcow2 -qemu-img create -f qcow2 dummy.qcow2 1M +rm -f snapshot.qcow2 +qemu-img create -f qcow2 snapshot.qcow2 1M qemu-system-i386 $QEMU_EXTRA_ARGS -display none -m 128 \ -net 'nic,model=virtio-net-pci' -net 'user,hostfwd=tcp::22500-:80' \ --monitor 'tcp:localhost:4445,server,nowait' -drive 'if=none,format=qcow2,file=dummy.qcow2' \ +-monitor 'tcp:localhost:4445,server,nowait' -drive 'if=none,format=qcow2,file=snapshot.qcow2' \ -drive 'file=alpine.qcow2,if=virtio' & pid=$!