file reference

This commit is contained in:
plasmagoat 2025-06-08 13:55:54 +02:00
parent 793da9d0ce
commit c1a600363a

View file

@ -88,24 +88,13 @@ jobs:
echo "tag=dev-$(date +%s)" >> $GITHUB_OUTPUT echo "tag=dev-$(date +%s)" >> $GITHUB_OUTPUT
fi fi
- name: Create Forgejo Release
uses: https://code.forgejo.org/sheik/forgejo-release@v2.6.0
with:
title: "NixOS Base Image ${{ steps.version.outputs.tag }}"
prerelease: ${{ github.ref_type == 'tag' }}
tag: ${{ steps.version.outputs.tag }}
direction: upload
release-notes: |
This release contains the NixOS base image for Proxmox labeled `${{ steps.version.outputs.tag }}`.
release-dir: "${{ steps.artifact.outputs.download-path }}/nix-support"
- name: Upload image to Proxmox and manage templates - name: Upload image to Proxmox and manage templates
run: | run: |
set -e set -e
ls ls
FOLDER="${{ steps.artifact.outputs.download-path }}" FOLDER="${{ steps.artifact.outputs.download-path }}"
IMAGE_PATH=$(find "$FOLDER" -maxdepth 1 -type f -name '*.vma.zst' | head -n 1) IMAGE_PATH=$(find "$FOLDER" -maxdepth 1 -type f -name '*.vma.zst' | head -n 1)
IMAGE=$(basename "$FULL_PATH") IMAGE=$(basename "$IMAGE_PATH")
REMOTE_NAME="nixos-base-image-${{ steps.version.outputs.tag}}.vma.zst" REMOTE_NAME="nixos-base-image-${{ steps.version.outputs.tag}}.vma.zst"
REMOTE_PATH="/var/lib/vz/dump/$REMOTE_NAME" REMOTE_PATH="/var/lib/vz/dump/$REMOTE_NAME"
@ -124,3 +113,14 @@ jobs:
qm clone $TEMPLATE_VMID $LATEST_TEMPLATE_VMID --name nixos-base-latest qm clone $TEMPLATE_VMID $LATEST_TEMPLATE_VMID --name nixos-base-latest
qm template $TEMPLATE_VMID qm template $TEMPLATE_VMID
" "
- name: Create Forgejo Release
uses: https://code.forgejo.org/sheik/forgejo-release@v2.6.0
with:
title: "NixOS Base Image ${{ steps.version.outputs.tag }}"
prerelease: ${{ github.ref_type == 'tag' }}
tag: ${{ steps.version.outputs.tag }}
direction: upload
release-notes: |
This release contains the NixOS base image for Proxmox labeled `${{ steps.version.outputs.tag }}`.
release-dir: "${{ steps.artifact.outputs.download-path }}/nix-support"