Compare commits
3 commits
4ba2f85376
...
791297e760
| Author | SHA1 | Date | |
|---|---|---|---|
| 791297e760 | |||
| f0a992f2a5 | |||
| e276928862 |
2 changed files with 6 additions and 18 deletions
|
|
@ -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
|
||||
|
|
@ -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: |
|
||||
|
|
|
|||
19
README.md
19
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue