feat: add iso image
This commit is contained in:
parent
85e1b5067a
commit
48f25e46ba
1 changed files with 9 additions and 3 deletions
12
.github/workflows/build-raspi4.yaml
vendored
12
.github/workflows/build-raspi4.yaml
vendored
|
@ -1,11 +1,17 @@
|
||||||
---
|
---
|
||||||
name: sd-image-rpi4
|
name: build-image
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
image:
|
||||||
|
description: 'Which image to build'
|
||||||
|
required: true
|
||||||
|
default: 'rpi4'
|
||||||
|
options: ['iso', 'rpi4']
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-sd-image:
|
build-sd-image:
|
||||||
name: Build Raspi4 image
|
name: Build Nixos image
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4.1.1
|
- uses: actions/checkout@v4.1.1
|
||||||
|
@ -25,7 +31,7 @@ jobs:
|
||||||
shell: bash
|
shell: bash
|
||||||
- name: Build SD Image
|
- name: Build SD Image
|
||||||
run: |
|
run: |
|
||||||
nix build .#images.rpi4
|
nix build .#images.${{ github.event.inputs.image }}
|
||||||
- uses: actions/upload-artifact@v3
|
- uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: rpi4.img
|
name: rpi4.img
|
||||||
|
|
Reference in a new issue