Add workflow to build installer ISO
Some checks reported warnings
CI / Check, build and cache Nix flake (push) Has been cancelled
Installer ISO / Build installer ISO (push) Successful in 6m14s

This commit is contained in:
Jack O'Sullivan 2023-12-05 14:22:03 +00:00
parent 373fb45831
commit 3d7a1b8e6c

View File

@ -0,0 +1,34 @@
name: Installer ISO
on:
push:
tags: [installer]
jobs:
installer:
name: Build installer ISO
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v23
with:
github_access_token: ${{ secrets.GH_PULL_TOKEN }}
extra_nix_config: |
# Make sure we're using sandbox
sandbox-fallback = false
extra-substituters = https://nix-cache.nul.ie/main
extra-trusted-public-keys = main:mMChkG8LwXrFirVfudqjSHasK1jV31OVElYD3eImYl8=
- name: Set up attic
run: |
nix run .#nixpkgs.mine.x86_64-linux.attic-client -- \
login --set-default colony https://nix-cache.nul.ie "${{ secrets.NIX_CACHE_TOKEN }}"
- name: Build installer ISO
run: |
nix build .#nixosConfigurations.installer.config.my.buildAs.iso
- name: Upload ISO
uses: actions/upload-artifact@v3
with:
name: installer-iso
path: result/iso/nixos-installer-devplayer0.iso