nixin-web/.forgejo/workflows/build-images.yaml

43 lines
1.4 KiB
YAML
Raw Normal View History

2024-09-30 14:27:50 +00:00
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
2024-09-30 14:27:50 +00:00
jobs:
build:
name: Build NixOS images
runs-on: nixos
2024-09-30 14:27:50 +00:00
steps:
- name: Install node
2024-09-30 15:57:06 +00:00
run: nix-env -iA nixpkgs.nodejs_20
- name: Checkout repository
2024-09-30 14:27:50 +00:00
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
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"
- name: Upload install iso image
uses: actions/upload-artifact@v3
with:
2024-10-02 18:20:56 +00:00
name: nixin-install-iso
path: nixin-image-install-iso/iso/*.iso
if-no-files-found: error
compression-level: 7
overwrite: false