feat: add iso image

This commit is contained in:
truxnell 2024-03-21 21:00:58 +11:00
parent 85e1b5067a
commit 48f25e46ba

View file

@ -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