From e2769288627a5a56615bdda6347469544d8f5404 Mon Sep 17 00:00:00 2001 From: plasmagoat Date: Mon, 9 Jun 2025 03:11:06 +0200 Subject: [PATCH 1/3] ready for release --- README.md | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index a69350e..aad66f2 100644 --- a/README.md +++ b/README.md @@ -6,25 +6,12 @@ This is the nixos base image to be used as a template in proxmox Build the image on remote builder ```bash -nix build .#base --builders "ssh://root@nixos-builder.lab x86_64-linux" +nix build .#base ``` Copy to target proxmox storage ```bash -scp ./result/vzdump-qemu-nixos-*.vma.zst jupiter:/mnt/pve/templates-nfs/dump/ +cd ansible +ansible-playbook upload-template.yml ``` - -In proxmox UI - -* Go to datacenter->[node]->[storage]->backups -* Restore the image which was uploaded now -* Provide name, cpu, memory etc. Don't auto-start -* Open the new VM -> click on `more` -> convert to template - -## Testing the template manually - -* click on base image -> more -> clone -* Once cloned, provide cloud-init parameters as needed -* Adjust hard-disk size as needed. -* start and test From f0a992f2a51d0cd397c2385e6f7003bc98edb1df Mon Sep 17 00:00:00 2001 From: plasmagoat Date: Mon, 9 Jun 2025 03:15:02 +0200 Subject: [PATCH 2/3] override incase of tag trigger --- .forgejo/workflows/build-image.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.forgejo/workflows/build-image.yml b/.forgejo/workflows/build-image.yml index 3f80fae..6a4fda3 100644 --- a/.forgejo/workflows/build-image.yml +++ b/.forgejo/workflows/build-image.yml @@ -136,6 +136,7 @@ jobs: with: title: "NixOS Base Image ${{ steps.version.outputs.tag }}" prerelease: ${{ github.ref_type != 'tag' }} + override: ${{ github.ref_type == 'tag' }} tag: ${{ steps.version.outputs.tag }} direction: upload release-notes: | From 791297e76075625785e244608fdd49798ff34681 Mon Sep 17 00:00:00 2001 From: plasmagoat Date: Mon, 9 Jun 2025 12:12:10 +0200 Subject: [PATCH 3/3] ref name --- .forgejo/workflows/build-image.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.forgejo/workflows/build-image.yml b/.forgejo/workflows/build-image.yml index 6a4fda3..46faffe 100644 --- a/.forgejo/workflows/build-image.yml +++ b/.forgejo/workflows/build-image.yml @@ -125,8 +125,8 @@ jobs: - name: Set VERSION from tag or fallback id: version run: | - if [ -n "${CI_COMMIT_TAG}" ]; then # Use CI_COMMIT_TAG for Forgejo - echo "tag=${CI_COMMIT_TAG}" >> "$GITHUB_OUTPUT" + if [ -n "${GITHUB_REF_NAME}" ]; + echo "tag=${GITHUB_REF_NAME}" >> "$GITHUB_OUTPUT" else echo "tag=dev-$(date +%s)" >> "$GITHUB_OUTPUT" fi