Compare commits

...

3 commits

Author SHA1 Message Date
791297e760 ref name 2025-06-09 12:12:10 +02:00
f0a992f2a5 override incase of tag trigger
All checks were successful
Build & Upload NixOS Proxmox Image / Build NixOS Base Image (push) Successful in 2m11s
Build & Upload NixOS Proxmox Image / Release Image (push) Successful in 15s
2025-06-09 03:15:02 +02:00
e276928862 ready for release
Some checks failed
Build & Upload NixOS Proxmox Image / Release Image (push) Has been cancelled
Build & Upload NixOS Proxmox Image / Build NixOS Base Image (push) Has been cancelled
2025-06-09 03:11:06 +02:00
2 changed files with 6 additions and 18 deletions

View file

@ -125,8 +125,8 @@ jobs:
- name: Set VERSION from tag or fallback - name: Set VERSION from tag or fallback
id: version id: version
run: | run: |
if [ -n "${CI_COMMIT_TAG}" ]; then # Use CI_COMMIT_TAG for Forgejo if [ -n "${GITHUB_REF_NAME}" ];
echo "tag=${CI_COMMIT_TAG}" >> "$GITHUB_OUTPUT" echo "tag=${GITHUB_REF_NAME}" >> "$GITHUB_OUTPUT"
else else
echo "tag=dev-$(date +%s)" >> "$GITHUB_OUTPUT" echo "tag=dev-$(date +%s)" >> "$GITHUB_OUTPUT"
fi fi
@ -136,6 +136,7 @@ jobs:
with: with:
title: "NixOS Base Image ${{ steps.version.outputs.tag }}" title: "NixOS Base Image ${{ steps.version.outputs.tag }}"
prerelease: ${{ github.ref_type != 'tag' }} prerelease: ${{ github.ref_type != 'tag' }}
override: ${{ github.ref_type == 'tag' }}
tag: ${{ steps.version.outputs.tag }} tag: ${{ steps.version.outputs.tag }}
direction: upload direction: upload
release-notes: | release-notes: |

View file

@ -6,25 +6,12 @@ This is the nixos base image to be used as a template in proxmox
Build the image on remote builder Build the image on remote builder
```bash ```bash
nix build .#base --builders "ssh://root@nixos-builder.lab x86_64-linux" nix build .#base
``` ```
Copy to target proxmox storage Copy to target proxmox storage
```bash ```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