forked from alpinelinux/alpine-make-vm-image
-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (48 loc) · 1.66 KB
/
Copy pathci.yml
File metadata and controls
55 lines (48 loc) · 1.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: CI
on:
- pull_request
- push
jobs:
test-ubuntu:
name: Test on Ubuntu
runs-on: ubuntu-latest
steps:
- name: Install qemu-utils
run: |
sudo apt-get update
sudo apt-get install qemu-utils zip
- uses: actions/checkout@v3
- name: Build image for x86_64 with BIOS mode and without GPT
run: |
sudo ./alpine-make-vm-image \
--image-format qcow2 \
--image-size 6G \
--repositories-file example/repositories \
--packages "$(cat example/packages)" \
--fs-skel-dir example/rootfs \
--fs-skel-chown root:root \
--script-chroot \
alpine-bios.qcow2 -- ./example/configure.sh
qemu-img convert -f qcow2 alpine-bios.qcow2 -O vdi alpine-bios.vdi
pwd
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
path: /home/runner/work/pythonos/pythonos/alpine-bios.vdi
- run: |
# zip -v -j alpine-pythonui.zip /home/runner/work/pythonos/pythonos/alpine-bios.vdi
zip -v -j alpine-pythonui.zip alpine-bios.vdi
# - name: Release
# uses: technote-space/action-gh-release@v2
# if: startsWith(github.ref, 'refs/tags/')
# with:
# files: alpine-pythonui.zip
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Release
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "latest"
prerelease: true
title: "Development Build"
files: alpine-pythonui.zip