Skip to content

Commit

Permalink
Rename dummy->snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
LindirQuenya authored Sep 13, 2022
1 parent 23c5e31 commit 2643e04
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
6 changes: 3 additions & 3 deletions snapshot.sh
Original file line number Diff line number Diff line change
@@ -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=$!

Expand Down

0 comments on commit 2643e04

Please sign in to comment.