2020-12-07 12:14:42 +00:00
|
|
|
name: CI
|
|
|
|
on:
|
2021-05-09 12:40:31 +00:00
|
|
|
- pull_request
|
2020-12-07 12:14:42 +00:00
|
|
|
- push
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
test:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Install qemu-utils
|
|
|
|
run: |
|
|
|
|
sudo apt-get update
|
|
|
|
sudo apt-get install qemu-utils
|
|
|
|
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Build image
|
|
|
|
run: |
|
|
|
|
sudo ./alpine-make-vm-image \
|
|
|
|
--image-format qcow2 \
|
|
|
|
--image-size 2G \
|
|
|
|
--repositories-file example/repositories \
|
|
|
|
--packages "$(cat example/packages)" \
|
|
|
|
--script-chroot \
|
|
|
|
alpine-virthardened-$(date +%Y-%m-%d).qcow2 -- ./example/configure.sh
|