add artifact upload step in build image action

This commit is contained in:
Douze Bé 2024-10-02 13:44:25 +02:00
parent 5efd795211
commit ae5b6c21be

View file

@ -4,6 +4,13 @@ on:
# push: # push:
# branches: # branches:
# - release # - 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
jobs: jobs:
build: build:
name: Build NixOS images name: Build NixOS images
@ -14,4 +21,12 @@ jobs:
- name: checkout repository - name: checkout repository
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: run generator - name: run generator
run: nix-shell -p nixos-generators --run "nixos-generate -c inventory/demo-configuration.nix -f proxmox-lxc" 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
uses: actions/upload-artifact@v4
with:
name: nixin-proxmox-lxc-template
path: ./nixin-image-proxmox-lxc/tarball/nixos-system-x86_64-linux.tar.xz
if-no-files-found: error
compression-level: 0
overwrite: false