add install iso image to build images action
This commit is contained in:
parent
f29e5ad230
commit
26246f4a8a
1 changed files with 15 additions and 5 deletions
|
@ -16,17 +16,27 @@ jobs:
|
|||
name: Build NixOS images
|
||||
runs-on: nixos
|
||||
steps:
|
||||
- name: install node
|
||||
- name: Install node
|
||||
run: nix-env -iA nixpkgs.nodejs_20
|
||||
- name: checkout repository
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
- name: run generator
|
||||
- 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 artifact
|
||||
- name: Upload proxmox lxc template
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: nixin-proxmox-lxc-template
|
||||
path: ./nixin-image-proxmox-lxc/tarball/nixos-system-x86_64-linux.tar.xz
|
||||
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-iso"
|
||||
- name: Upload install iso image
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: nixin-proxmox-lxc-template
|
||||
path: nixin-image-install-iso/iso/*.iso
|
||||
if-no-files-found: error
|
||||
compression-level: 0
|
||||
overwrite: false
|
||||
|
|
Loading…
Reference in a new issue