forked from FlashpointProject/flashpointvm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1829d6d
commit 77727c7
Showing
5 changed files
with
23 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,13 +10,13 @@ jobs: | |
- uses: actions/[email protected] | ||
- name: Prepare | ||
id: prepare | ||
run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)" | ||
run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)" | ||
- name: Install dependencies | ||
run: | | ||
export DEBIAN_FRONTEND=noninteractive | ||
sudo add-apt-repository ppa:canonical-server/server-backports \ | ||
&& sudo apt-get update \ | ||
&& sudo apt-get -y install qemu-utils qemu-system-x86 | ||
&& sudo apt-get -y install qemu-utils qemu-system-x86 p7zip-full wget make curl unzip | ||
- name: Install pinned iPXE roms | ||
run: wget -O/tmp/roms.zip "$IPXE_ROMS" && sudo unzip -o /tmp/roms.zip -d /usr/lib/ipxe/qemu | ||
- name: Build image | ||
|
@@ -43,3 +43,13 @@ jobs: | |
asset_path: ./alpine.qcow2 | ||
asset_name: alpine.qcow2 | ||
asset_content_type: application/octet-stream | ||
- name: Upload snapshot | ||
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: ./snapshot.7z | ||
asset_name: snapshot.7z | ||
asset_content_type: application/octet-stream |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
*.qcow2 | ||
*.7z |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,4 @@ alpine.qcow2: setup.sh | |
|
||
.PHONY: clean | ||
clean: | ||
rm -f alpine.qcow2 | ||
rm -f alpine.qcow2 snapshot.7z |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters