From 48f25e46baa928c7c4ab9e921f3bd389ec0c225d Mon Sep 17 00:00:00 2001 From: truxnell <19149206+truxnell@users.noreply.github.com> Date: Thu, 21 Mar 2024 21:00:58 +1100 Subject: [PATCH] feat: add iso image --- .github/workflows/build-raspi4.yaml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-raspi4.yaml b/.github/workflows/build-raspi4.yaml index 348ace5..22122a7 100644 --- a/.github/workflows/build-raspi4.yaml +++ b/.github/workflows/build-raspi4.yaml @@ -1,11 +1,17 @@ --- -name: sd-image-rpi4 +name: build-image on: workflow_dispatch: + inputs: + image: + description: 'Which image to build' + required: true + default: 'rpi4' + options: ['iso', 'rpi4'] jobs: build-sd-image: - name: Build Raspi4 image + name: Build Nixos image runs-on: ubuntu-latest steps: - uses: actions/checkout@v4.1.1 @@ -25,7 +31,7 @@ jobs: shell: bash - name: Build SD Image run: | - nix build .#images.rpi4 + nix build .#images.${{ github.event.inputs.image }} - uses: actions/upload-artifact@v3 with: name: rpi4.img