From 52a9c55a88e3edcbf3d4b2c5007d1e521081c7ca Mon Sep 17 00:00:00 2001 From: Douze Baie <12b@distrilab.fr> Date: Mon, 30 Sep 2024 16:27:50 +0200 Subject: [PATCH] add action to build demo images --- .forgejo/workflows/build-images.yaml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .forgejo/workflows/build-images.yaml diff --git a/.forgejo/workflows/build-images.yaml b/.forgejo/workflows/build-images.yaml new file mode 100644 index 0000000..3f74cdd --- /dev/null +++ b/.forgejo/workflows/build-images.yaml @@ -0,0 +1,20 @@ +name: "build demo images" +on: + push: + branches: + - main +jobs: + build: + name: Build NixOS images + runs-on: debian-latest + 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"