42 lines
1.4 KiB
YAML
42 lines
1.4 KiB
YAML
name: "build demo images"
|
|
on:
|
|
workflow_dispatch:
|
|
# push:
|
|
# branches:
|
|
# - release
|
|
|
|
# Allow only one concurrent image build, skipping runs queued between the run in-progress and latest queued.
|
|
# However, do NOT cancel in-progress build as we want to allow this to complete.
|
|
concurrency:
|
|
group: images
|
|
cancel-in-progress: false
|
|
|
|
jobs:
|
|
build:
|
|
name: Build NixOS images
|
|
runs-on: nixos
|
|
steps:
|
|
- name: Install node
|
|
run: nix-env -iA nixpkgs.nodejs_20
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
- name: Build proxmox lxc template
|
|
run: nix-shell -p nixos-generators --run "nixos-generate -c inventory/demo-configuration.nix -f proxmox-lxc -o nixin-image-proxmox-lxc"
|
|
- name: Upload proxmox lxc template
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: nixin-proxmox-lxc-template
|
|
path: ./nixin-image-proxmox-lxc/tarball/*.tar.xz
|
|
if-no-files-found: error
|
|
compression-level: 0
|
|
overwrite: false
|
|
- name: Build install iso image
|
|
run: nix-shell -p nixos-generators --run "nixos-generate -c inventory/demo-configuration.nix -f install-iso -o nixin-image-install-iso"
|
|
- name: Upload install iso image
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: nixin-install-iso
|
|
path: nixin-image-install-iso/iso/*.iso
|
|
if-no-files-found: error
|
|
compression-level: 7
|
|
overwrite: false
|