2024-09-30 14:27:50 +00:00
|
|
|
name: "build demo images"
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: Build NixOS images
|
2024-09-30 15:16:39 +00:00
|
|
|
runs-on: nixos
|
2024-09-30 14:27:50 +00:00
|
|
|
steps:
|
|
|
|
- name: install sudo
|
|
|
|
run: apt-get update && apt-get -y install sudo
|
|
|
|
- name: checkout repository
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
- name: install nix
|
|
|
|
uses: https://git.distrilab.fr/nix-clic/install-nix-action@v27
|
|
|
|
with:
|
|
|
|
nix_path: nixpkgs=channel:nixos-24.05
|
|
|
|
- name: run generator
|
|
|
|
run: nix-shell -p nixos-generators --run "nixos-generate -c inventory/demo-configuration.nix -f proxmox-lxc"
|