2024-09-30 14:27:50 +00:00
|
|
|
name: "build demo images"
|
|
|
|
on:
|
2024-10-01 11:49:33 +00:00
|
|
|
workflow_dispatch:
|
|
|
|
# push:
|
|
|
|
# branches:
|
|
|
|
# - release
|
2024-10-02 11:44:25 +00:00
|
|
|
|
|
|
|
# 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
|
|
|
|
|
2024-09-30 14:27:50 +00:00
|
|
|
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:
|
2024-10-02 18:02:46 +00:00
|
|
|
- name: Install node
|
2024-09-30 15:57:06 +00:00
|
|
|
run: nix-env -iA nixpkgs.nodejs_20
|
2024-10-02 18:02:46 +00:00
|
|
|
- name: Checkout repository
|
2024-09-30 14:27:50 +00:00
|
|
|
uses: actions/checkout@v4
|
2024-10-02 18:02:46 +00:00
|
|
|
- name: Build proxmox lxc template
|
2024-10-02 11:44:25 +00:00
|
|
|
run: nix-shell -p nixos-generators --run "nixos-generate -c inventory/demo-configuration.nix -f proxmox-lxc -o nixin-image-proxmox-lxc"
|
2024-10-02 18:02:46 +00:00
|
|
|
- name: Upload proxmox lxc template
|
2024-10-02 11:52:09 +00:00
|
|
|
uses: actions/upload-artifact@v3
|
2024-10-02 11:44:25 +00:00
|
|
|
with:
|
|
|
|
name: nixin-proxmox-lxc-template
|
2024-10-02 18:02:46 +00:00
|
|
|
path: ./nixin-image-proxmox-lxc/tarball/*.tar.xz
|
|
|
|
if-no-files-found: error
|
|
|
|
compression-level: 0
|
|
|
|
overwrite: false
|
|
|
|
- name: Build install iso image
|
2024-10-02 18:41:45 +00:00
|
|
|
run: nix-shell -p nixos-generators --run "nixos-generate -c inventory/demo-configuration.nix -f install-iso -o nixin-image-install-iso"
|
2024-10-02 18:02:46 +00:00
|
|
|
- name: Upload install iso image
|
|
|
|
uses: actions/upload-artifact@v3
|
|
|
|
with:
|
2024-10-02 18:20:56 +00:00
|
|
|
name: nixin-install-iso
|
2024-10-02 18:02:46 +00:00
|
|
|
path: nixin-image-install-iso/iso/*.iso
|
2024-10-02 11:44:25 +00:00
|
|
|
if-no-files-found: error
|
2024-10-03 11:35:06 +00:00
|
|
|
compression-level: 7
|
2024-10-02 11:44:25 +00:00
|
|
|
overwrite: false
|